Skip to main content

Module http

Module http 

Source

Enums§

HttpMethod
HTTP method.

Traits§

HttpSource

Functions§

add_headers
add_query_parameters
decompress_body
Decompresses the body based on the Content-Encoding header.
emit_decompress_error
Maps a decompression failure to a response. If error is a DecompressedSizeLimitExceeded (the decompressed output exceeded the configured size cap), it becomes a 413 Payload Too Large reporting max_decompressed_size (the cap that was actually enforced), matching the request-body and snappy size errors. Any other decode failure emits an HttpDecompressError event and becomes a 422 Unprocessable Entity.
set_max_decompressed_size_bytes
Override the global decompressed payload size cap. Must be called before any sources start.