Struct oxide_auth::frontends::simple::request::Response [−][src]
pub struct Response {
pub status: Status,
pub location: Option<Url>,
pub www_authenticate: Option<String>,
pub body: Option<Body>,
}Expand description
Open and simple implementation of WebResponse.
Fields
status: StatusHTTP status code.
location: Option<Url>A location header, for example for redirects.
www_authenticate: Option<String>Indicates how the client should have authenticated.
Only set with Unauthorized status.
body: Option<Body>Encoded body of the response.
One variant for each possible encoding type.
Trait Implementations
A response which will redirect the user-agent to which the response is issued.
Set the response status to 400.
Set the response status to 401 and add a WWW-Authenticate header.
A pure text response with no special media type set.
Json repsonse data, with media type `aplication/json.
Auto Trait Implementations
impl RefUnwindSafe for Response
impl UnwindSafe for Response
Blanket Implementations
Mutably borrows from an owned value. Read more