Struct actix_web::httpcodes::StaticResponse
[−]
[src]
pub struct StaticResponse(_);
Methods
impl StaticResponse
[src]
fn builder(&self) -> HttpResponseBuilder
[src]
fn response(&self) -> HttpResponse
[src]
fn with_reason(self, reason: &'static str) -> HttpResponse
[src]
fn with_body<B: Into<Body>>(self, body: B) -> HttpResponse
[src]
Trait Implementations
impl<S> RouteHandler<S> for StaticResponse
[src]
fn handle(&self, _: &mut HttpRequest, _: Payload, _: Rc<S>) -> Task
[src]
Handle request
fn set_prefix(&mut self, prefix: String)
[src]
Set route prefix