Expand description
Lower-level HTTP helpers for application/foctet envelopes.
These functions expose direct request/response/body helpers and are useful when callers need custom assembly.
The envelope protects HTTP body bytes only. Method, URI, status code, and outer headers remain visible to the surrounding HTTP transport.
Functionsยง
- ensure_
foctet_ content_ type - Validates that headers contain
Content-Type: application/foctet. - has_
body_ only_ scope - Returns
trueif headers containx-foctet-scope: body-only. - is_
foctet_ content_ type - Returns
trueif headers containContent-Type: application/foctet. - open_
http_ body - Opens an
application/foctetbody to plaintext bytes. - open_
http_ body_ with_ limits - Opens an
application/foctetbody to plaintext bytes with explicit limits. - open_
http_ request - Validates foctet content type and opens request body.
- open_
http_ request_ with_ limits - Validates foctet content type and opens request body with explicit limits.
- open_
http_ response - Validates foctet content type and opens response body.
- open_
http_ response_ with_ limits - Validates foctet content type and opens response body with explicit limits.
- seal_
http_ body - Seals raw plaintext bytes to an
application/foctetbody. - seal_
http_ body_ with_ limits - Seals raw plaintext bytes to an
application/foctetbody with explicit limits. - seal_
http_ request - Seals request body and sets
Content-Type: application/foctet. - seal_
http_ request_ with_ limits - Seals request body with explicit limits and sets
Content-Type: application/foctet. - seal_
http_ response - Seals response body and sets
Content-Type: application/foctet. - seal_
http_ response_ with_ limits - Seals response body with explicit limits and sets
Content-Type: application/foctet. - set_
foctet_ content_ type - Sets
Content-Type: application/foctet. - set_
foctet_ scope_ header - Sets the advisory Foctet scope header to
body-only.