pub struct StringBody { /* private fields */ }Expand description
Extractor for reading the request body as a plain UTF-8 string.
§Example
use foxtive_ntex::http::extractors::StringBody;
async fn handler(body: StringBody) -> String {
format!("Received: {}", body.body())
}Implementations§
Source§impl StringBody
impl StringBody
Trait Implementations§
Source§impl From<&str> for StringBody
impl From<&str> for StringBody
Source§impl From<String> for StringBody
impl From<String> for StringBody
Source§impl<Err> FromRequest<Err> for StringBody
impl<Err> FromRequest<Err> for StringBody
Auto Trait Implementations§
impl Freeze for StringBody
impl RefUnwindSafe for StringBody
impl Send for StringBody
impl Sync for StringBody
impl Unpin for StringBody
impl UnsafeUnpin for StringBody
impl UnwindSafe for StringBody
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