View Source HttpRequest (HTTP Parser v0.1.0)

Summary

Types

@type t() :: %HttpRequest{
  body: String.t(),
  headers: [HttpHeader.t()],
  method: String.t(),
  path: String.t(),
  version: String.t()
}

Functions

Link to this function

new(method, path, version, headers, body)

View Source
@spec new(String.t(), String.t(), String.t(), [HttpHeader.t()], String.t()) :: t()
@spec parse(String.t()) :: t()
@spec to_string(%HttpRequest{
  body: String.t(),
  headers: [HttpHeader.t()],
  method: String.t(),
  path: String.t(),
  version: String.t()
}) :: String.t()