Skip to main content

decode_params

Function decode_params 

pub fn decode_params(data: &[u8]) -> impl Iterator<Item = (&[u8], &[u8])>
Available on crate feature fastcgi only.
Expand description

Decode all name-value pairs from a contiguous byte slice (the content of a PARAMS record).

Returns an iterator over (&[u8], &[u8]) name-value pairs without copying.

Reference: FastCGI Specification §3.4