pub struct HttpOpener { /* private fields */ }Expand description
High-level helper for opening HTTP bodies, requests, and responses.
Implementations§
Source§impl HttpOpener
impl HttpOpener
Sourcepub fn new(options: HttpOpenOptions) -> Self
pub fn new(options: HttpOpenOptions) -> Self
Creates an opener with default HTTP behavior.
Sourcepub fn with_config(options: HttpOpenOptions, config: HttpConfig) -> Self
pub fn with_config(options: HttpOpenOptions, config: HttpConfig) -> Self
Creates an opener with explicit HTTP behavior.
Sourcepub fn options(&self) -> &HttpOpenOptions
pub fn options(&self) -> &HttpOpenOptions
Returns the opening options.
Sourcepub fn config(&self) -> &HttpConfig
pub fn config(&self) -> &HttpConfig
Returns the HTTP behavior config.
Sourcepub fn open_body(&self, envelope: &[u8]) -> Result<Vec<u8>, HttpError>
pub fn open_body(&self, envelope: &[u8]) -> Result<Vec<u8>, HttpError>
Opens an application/foctet body into plaintext bytes.
Trait Implementations§
Source§impl Clone for HttpOpener
impl Clone for HttpOpener
Source§fn clone(&self) -> HttpOpener
fn clone(&self) -> HttpOpener
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HttpOpener
impl RefUnwindSafe for HttpOpener
impl Send for HttpOpener
impl Sync for HttpOpener
impl Unpin for HttpOpener
impl UnsafeUnpin for HttpOpener
impl UnwindSafe for HttpOpener
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more