Skip to main content

Module http

Module http 

Source
Expand description

Generic HTTP/1.1 protocol parser for Ocular. Parses request line, headers, and body. Used for Elasticsearch and other HTTP services.

Functions§

extract_http_full_command
Extract full HTTP request (method + path + body if present).
format_http_response_detail
Format detailed HTTP response (status + headers + body).
http_request_complete
Check if an HTTP request is complete.
http_response_complete
Check if an HTTP response is complete (has full headers + body per Content-Length).
parse_http_request
Parse an HTTP request buffer, returning “METHOD /path” summary.
parse_http_response
Parse an HTTP response buffer, returning status summary.