Current section

Files

Jump to
hackney include hackney_lib.hrl
Raw

include/hackney_lib.hrl

-record(hackney_url, {
transport :: atom(),
scheme :: atom(),
netloc :: binary(),
raw_path :: binary(),
path = <<>> :: binary(),
qs = <<>> :: binary(),
fragment = <<>> :: binary(),
host :: string(),
port :: integer(),
user = <<>> :: binary(),
password = <<>> :: binary()
}).
-type hackney_url() :: #hackney_url{}.
-record(hparser, {
type = auto :: atom(),
max_line_length = 4096 :: integer(),
max_empty_lines = 10 :: integer(),
empty_lines = 0 :: integer(),
state = on_first_line :: atom(),
buffer = <<>> :: binary(),
version :: binary(),
method :: binary(),
partial_headers = [] :: list(),
clen :: integer(),
te :: binary(),
connection :: binary(),
ctype :: binary(),
location :: binary(),
body_state = waiting :: atom()
}).