Struct actix_web::httpcodes::StaticResponse
[−]
[src]
pub struct StaticResponse(_);
Methods
impl StaticResponse
[src]
fn build(&self) -> HttpResponseBuilder
[src]
fn with_reason(self, reason: &'static str) -> HttpResponse
[src]
fn with_body<B: Into<Body>>(self, body: B) -> HttpResponse
[src]
Trait Implementations
impl Copy for StaticResponse
[src]
impl Clone for StaticResponse
[src]
fn clone(&self) -> StaticResponse
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for StaticResponse
[src]
impl<S> Handler<S> for StaticResponse
[src]
type Result = HttpResponse
The type of value that handler will return.
fn handle(&mut self, _: HttpRequest<S>) -> HttpResponse
[src]
Handle request
impl Responder for StaticResponse
[src]
type Item = HttpResponse
The associated item which can be returned.
type Error = HttpError
The associated error which can be returned.
fn respond_to(self, _: HttpRequest) -> Result<HttpResponse, HttpError>
[src]
Convert itself to Reply
or Error
.