pub struct RawRequest { /* private fields */ }Expand description
An explicitly raw request for advanced integrations. Product clients validate their typed contracts before reaching this seam. Raw callers own service-specific validation.
Implementations§
Source§impl RawRequest
impl RawRequest
Sourcepub fn new(method: Method, path: impl Into<String>) -> Self
pub fn new(method: Method, path: impl Into<String>) -> Self
No replay is assumed for an arbitrary operation, including an arbitrary GET.
Sourcepub fn read(path: impl Into<String>) -> Self
pub fn read(path: impl Into<String>) -> Self
Declare a GET with read semantics, allowing bounded replay-safe retries.
pub fn query(self, values: impl IntoIterator<Item = (String, String)>) -> Self
Sourcepub fn segment(self, value: impl AsRef<str>) -> Result<Self>
pub fn segment(self, value: impl AsRef<str>) -> Result<Self>
Append identifier data encoded once as a path segment. Literal slashes and percent signs are data; recursively encoded traversal is rejected locally.
Sourcepub fn header(self, name: &str, value: &str) -> Result<Self>
pub fn header(self, name: &str, value: &str) -> Result<Self>
Authentication, routing authority and framing headers belong to the SDK.
Sourcepub fn body(self, bytes: Bytes, content_type: &str) -> Result<Self>
pub fn body(self, bytes: Bytes, content_type: &str) -> Result<Self>
Send bytes with an explicit content type. Bytes remain exact across signing/retries.
Sourcepub fn json_value(self, value: &Value, limit: usize) -> Result<Self>
pub fn json_value(self, value: &Value, limit: usize) -> Result<Self>
Encode an already constructed finite JSON value within an explicit byte bound.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RawRequest
impl RefUnwindSafe for RawRequest
impl Send for RawRequest
impl Sync for RawRequest
impl Unpin for RawRequest
impl UnsafeUnpin for RawRequest
impl UnwindSafe for RawRequest
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