Skip to main content

Module structural

Module structural 

Source
Expand description

Structural encoding strategies (null byte, overlong UTF-8, chunked, HPP). Structural encoding strategies — byte-level and framing manipulations.

Structs§

ChunkedBody
Result of chunked transfer-encoding split.

Functions§

base64_encode
Base64 encoding — standard alphabet.
base64_url_encode
Base64 URL-safe encoding — -_ alphabet, no padding.
chunked_split
Chunked transfer-encoding split — break payload across HTTP chunks.
deflate_encode
Deflate compression.
gzip_encode
Gzip compression.
hex_encode
Hex encoding.
null_byte_inject
Null byte injection — append %00 to truncate strings in C-style parsers.
overlong_utf8
Overlong UTF-8 encoding (2-byte) — represent ASCII non-alphanumeric as 2-byte sequences.
overlong_utf8_more
Extended overlong UTF-8 encoding (3-byte) — broader coverage with 3-byte sequences.
parameter_pollute
HTTP parameter pollution — duplicate parameter with a benign first value.
utf7_decode
Decode UTF-7 (RFC 2152) — the inverse of utf7_encode, i.e. exactly what a UTF-7-honoring backend computes. + opens a shift sequence of modified-Base64 carrying UTF-16BE code units, terminated by - (absorbed) or any non-Base64 byte (kept); +- is a literal +; every other byte passes through. Returns None on malformed Base64, an odd UTF-16 byte count, or unpaired surrogates — so a caller proving round-trip soundness treats undecodable input as “not recoverable” rather than guess.
utf7_encode
UTF-7 encoding per RFC 2152.