[−][src]Function http_desync_guardian::http_desync_guardian_analyze_raw_request
#[no_mangle]pub extern "C" fn http_desync_guardian_analyze_raw_request(
size: u32,
request_buffer: *const u8,
verdict: Option<&mut ClassificationVerdict>
)
Parses and analyzes a given HTTP request.
Arguments
size
length of the request header. Constant.request_buffer
a pointer to the request buffer. Constant.verdict
a pointer to verdict placeholder (being populated by this method). Mutable.
Safety
As long as request_buffer
and verdict
are valid pointers and the size is a positive integer.
Note
This method may abort execution, if any parameter is invalid. Which includes:
request_buffer
isNULL
verdict
isNULL
size
is0