Skip to main content

Module http

Module http 

Source
Expand description

HTTP/1.1 compatibility binding for the same authenticated QBDL objects as native service. Headers are the adapter surface. Bodies stay exact representation bytes. JSON is not an application object. HTTP status is not a grant. TLS/Web PKI is not PQ publisher authority.

Integrator adds mod http; in bundle/stream/mod.rs. HTTP/2 and HTTP/3 reuse these semantics when a selected client supports them; they are not native dependencies of this module.

Structs§

BoundHttpEntry
One selected publication entry bound to its HTTP provider.
FallbackPolicy
FetchBudget
HeaderView
HttpMux
Compiled fair schedule plus the readiness gate for this HTTP walk.
HttpMuxReport
Counts from one serve_scheduled walk. No Debug — tests match errors.
HttpProvider
InclusiveRange
Inclusive nonempty range stored as start+length so end cannot wrap.
LigGate
RangeRequest
ServeOptions
Served
ServedHeaders
ServedObject
One representation actually written into the caller out buffer.
Validator

Enums§

AdmittedTransfer
ClientError
ContentRange
Fetched
HttpObject
HttpStatusClass
ProviderError
RangeError
StatusError

Constants§

HEADER_CAP
LEGACY_FULL_OBJECT_FALLBACK_BYTES
Architecture §6: legacy whole-object HTTP fallback, explicit policy only.

Functions§

admit_headers
Classify and bound the transfer from headers. Does not read a body.
bind_http_entry
Bind C5 provider to one selected entry’s outboard. Does not wrap HttpRangeSource.
classify_status
Status-line classification only. Body is not data until admit_headers.
content_type_is_multipart
encoding_is_identity
Absent or exact identity. Any transform (gzip, lists) is a refusal.
entry_admits_family
Family tags Qac / Emf only after whole-entry admit. A blob is not those families.
entry_slice
Exact selected-entry bytes. Bounds refuse; this is not a grant.
get_range
GET one range. Classify headers before copying any body. Does not follow 3xx.
parse_content_range_value
Parse bytes start-end/total or 416 bytes */total. No extra interior spaces.
parse_range_spec
Parse bytes=start-end only. Open-end, suffix, star, and lists are R1 refusals.
parse_unsatisfiable_total
require_exact_partial
serve_proof_into
Proof bytes cannot borrow a stack buffer. Encode into out directly.
serve_scheduled
Drive next until empty. Control acknowledges with no HTTP body. HttpProvider always reserves: skip a second serve of the same entry identity. One grant scopes the walk (LocalWholeSourceGrant is one-shot).
strong_etag
Strong ETag is a quoted opaque tag. Weak W/"..." is not If-Range material.
tls_is_pq_publisher_authority
Honest residual: Web PKI / TLS on this hop never substitutes for QPR proofs.
url_has_userinfo
write_content_range
write_http_head
write_object_path
write_range_header
write_strong_etag
write_unsatisfiable_content_range