pub struct HttpRequestOptions { /* private fields */ }Expand description
Optional http_request parameters.
Implementations§
Source§impl HttpRequestOptions
impl HttpRequestOptions
pub fn new() -> Self
Sourcepub fn headers(self, headers: HashMap<String, String>) -> Self
pub fn headers(self, headers: HashMap<String, String>) -> Self
Request headers. A value may contain a literal {{secret:name}}
reference for a secret granted to this session via
CreateSandboxOptions::secret_names;
the sidecar substitutes the real value in-process – this SDK never
sees it.
Sourcepub fn body(self, body: impl Into<String>) -> Self
pub fn body(self, body: impl Into<String>) -> Self
Request body. May contain {{secret:name}} references, same as
HttpRequestOptions::headers.
Trait Implementations§
Source§impl Clone for HttpRequestOptions
impl Clone for HttpRequestOptions
Source§impl Debug for HttpRequestOptions
impl Debug for HttpRequestOptions
Auto Trait Implementations§
impl Freeze for HttpRequestOptions
impl RefUnwindSafe for HttpRequestOptions
impl Send for HttpRequestOptions
impl Sync for HttpRequestOptions
impl Unpin for HttpRequestOptions
impl UnsafeUnpin for HttpRequestOptions
impl UnwindSafe for HttpRequestOptions
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