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.
"""
@doc """
Formats the log output.
"""
@spec format(Plug.Conn.t) :: iodata
def format(conn), do: [ conn.method, " ", conn.request_path, " HTTP/1.1" ]
end