PicoHTTPParser
Julia wrapper of high performance picohttpparser C library.
PicoHTTPParser.ChunkedDecoder — Type
ChunkedDecoder(; consume_trailer::Bool = true)
Returns:
ChunkedDecoderPicoHTTPParser.Request — Type
Request
A parsed HTTP request.PicoHTTPParser.Response — Type
Response
A parsed HTTP response.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:
ChunkedResultPicoHTTPParser.parse_headers — Function
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}PicoHTTPParser.parse_response — Method
parse_response(message::Union{AbstractString, AbstractVector{<:UInt8}}; max_headers::Integer = 64)
Parse an HTTP response string using picohttpparser.
Returns:
ResponseContributing
If you find any bug or improvement make the PR, contributions are welcome!