Current section
Files
Jump to
Current section
Files
lib/plug/accesslog/default_formatter/request_line.ex
defmodule Plug.AccessLog.DefaultFormatter.RequestLine do
@moduledoc """
Recreates the first line of the original HTTP request.
"""
import Plug.Conn
@doc """
Appends to log output.
"""
@spec append(String.t, Plug.Conn.t) :: String.t
def append(message, conn) do
message <> conn.method <> " " <> full_path(conn) <> " HTTP/1.1"
end
end