PicoHTTPParser

Julia wrapper of high performance picohttpparser C library.

PicoHTTPParser.decode_chunked!Method
decode_chunked!(decoder::ChunkedDecoder, buf::Vector{UInt8}) -> ChunkedResult

Feed a buffer of chunked-encoded data through picohttpparser's `phr_decode_chunked`.

Returns:
    ChunkedResult
source
PicoHTTPParser.parse_headersFunction
parse_headers(message::Union{AbstractString, AbstractVector{<:UInt8}}, last_len::Integer = 0; max_headers::Integer = 64) -> Dict{String, String}

Incrementally parse headers (like phr_parse_headers).

Returns:
    Dict{String, String}
source
PicoHTTPParser.parse_responseMethod
parse_response(message::Union{AbstractString, AbstractVector{<:UInt8}}; max_headers::Integer = 64)

Parse an HTTP response string using picohttpparser.

Returns:
    Response
source

Contributing

If you find any bug or improvement make the PR, contributions are welcome!