pub struct ResponseBytes<'a> { /* private fields */ }Expand description
Original successful response payload and its producing reader. Keeping the envelope separate avoids allocating a large basic response for protocol failures or unsupported types; decoding moves the existing reader.
Implementations§
Source§impl<'a> ResponseBytes<'a>
impl<'a> ResponseBytes<'a>
Sourcepub fn as_bytes(&self) -> &'a [u8] ⓘ
pub fn as_bytes(&self) -> &'a [u8] ⓘ
Whole original successful OCSPResponse DER, including status and
responseBytes wrapper. RFC6960 §4.2.1 separates this envelope from the
signed BasicOCSPResponse payload. Reference digests must not substitute
the payload or a re-encoded envelope for these original bytes.
https://www.rfc-editor.org/rfc/rfc6960#section-4.2.1
Sourcepub fn basic_in<'query>(
&self,
query: &Reader<'query>,
) -> Result<Option<BasicResponse<'query>>>where
'a: 'query,
pub fn basic_in<'query>(
&self,
query: &Reader<'query>,
) -> Result<Option<BasicResponse<'query>>>where
'a: 'query,
Borrows the original basic-response payload under a current operation.
The envelope is not consumed or cloned. Its original producing parser,
source offsets and actual depth remain active, while the supplied query
funds new decoding, catalogue growth and lazy certificate processing.
None is only an unsupported response syntax, never a malformed known
basic response or a source/current-operation resource refusal.
Sourcepub fn into_basic(self, execution: &Memory) -> Result<Option<BasicResponse<'a>>>
pub fn into_basic(self, execution: &Memory) -> Result<Option<BasicResponse<'a>>>
Decode the mandatory basic response syntax using current execution.
None means unsupported syntax. The producing reader’s cumulative
work/depth limits remain active; no extra parser or reader copy is made.