Module roadrunner_http1

Data Types

headers()

headers() = roadrunner_http:headers()

status()

status() = roadrunner_http:status()

version()

version() = roadrunner_http:version()

Function Index

check_header_safe/2
compute_cached_decisions/1
parse_chunk/1
parse_chunk/2
parse_chunk/3
parse_header/1
parse_headers/1
parse_request/1
parse_request/2
parse_request_line/1
response/3

Function Details

check_header_safe/2

check_header_safe(Bin::binary(), Kind::name | value) -> ok

compute_cached_decisions/1

compute_cached_decisions(Headers::headers()) -> roadrunner_req:cached_decisions()

parse_chunk/1

parse_chunk(Bin::binary()) -> {ok, Data::binary(), Rest::binary()} | {ok, last, Trailers::headers(), Rest::binary()} | {more, undefined} | {error, bad_chunk_size | bad_chunk | bad_header | header_too_long | header_block_too_long | too_many_headers | conflicting_framing}

parse_chunk/2

parse_chunk(Bin::binary(), Limits::{pos_integer(), pos_integer(), pos_integer()}) -> {ok, Data::binary(), Rest::binary()} | {ok, last, Trailers::headers(), Rest::binary()} | {more, undefined} | {error, bad_chunk_size | bad_chunk | bad_header | header_too_long | header_block_too_long | too_many_headers | conflicting_framing}

parse_chunk/3

parse_chunk(Bin::binary(), Limits::{pos_integer(), pos_integer(), pos_integer()}, Budget::non_neg_integer() | infinity) -> {ok, Data::binary(), Rest::binary()} | {ok, last, Trailers::headers(), Rest::binary()} | {more, undefined} | {error, bad_chunk_size | bad_chunk | bad_header | header_too_long | header_block_too_long | too_many_headers | conflicting_framing | content_length_too_large}

parse_header/1

parse_header(Bin::binary()) -> {ok, Name::binary(), Value::binary(), Rest::binary()} | {end_of_headers, Rest::binary()} | {more, undefined} | {error, bad_header | header_too_long}

parse_headers/1

parse_headers(Bin::binary()) -> {ok, headers(), Rest::binary()} | {more, undefined} | {error, bad_header | header_too_long | header_block_too_long | too_many_headers | conflicting_framing}

parse_request/1

parse_request(Bin::binary()) -> {ok, roadrunner_req:request(), Rest::binary()} | {more, undefined} | {error, bad_request_line | bad_version | request_line_too_long | bad_header | header_too_long | header_block_too_long | too_many_headers | conflicting_framing | missing_host}

parse_request/2

parse_request(Bin::binary(), X2::{pos_integer(), pos_integer(), pos_integer(), pos_integer()}) -> {ok, roadrunner_req:request(), Rest::binary()} | {more, undefined} | {error, bad_request_line | bad_version | request_line_too_long | bad_header | header_too_long | header_block_too_long | too_many_headers | conflicting_framing | missing_host}

parse_request_line/1

parse_request_line(Bin::binary()) -> {ok, Method::binary(), Target::binary(), version(), Rest::binary()} | {more, undefined} | {error, bad_request_line | bad_version | request_line_too_long}

response/3

response(StatusCode::status(), Headers::headers(), Body::iodata()) -> iodata()


Generated by EDoc