mirror of
https://github.com/actix/actix-web.git
synced 2024-12-21 23:56:35 +00:00
grammar fixes (#796)
This commit is contained in:
parent
5426413cb6
commit
7300002226
1 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ pub trait Responder {
|
||||||
/// Convert itself to `AsyncResult` or `Error`.
|
/// Convert itself to `AsyncResult` or `Error`.
|
||||||
fn respond_to(self, req: &HttpRequest) -> Self::Future;
|
fn respond_to(self, req: &HttpRequest) -> Self::Future;
|
||||||
|
|
||||||
/// Override a status code for a responder.
|
/// Override a status code for a Responder.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use actix_web::{HttpRequest, Responder, http::StatusCode};
|
/// use actix_web::{HttpRequest, Responder, http::StatusCode};
|
||||||
|
@ -40,7 +40,7 @@ pub trait Responder {
|
||||||
CustomResponder::new(self).with_status(status)
|
CustomResponder::new(self).with_status(status)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add extra header to the responder's response.
|
/// Add header to the Responder's response.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use actix_web::{web, HttpRequest, Responder};
|
/// use actix_web::{web, HttpRequest, Responder};
|
||||||
|
@ -221,7 +221,7 @@ impl<T: Responder> CustomResponder<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Override a status code for the responder's response.
|
/// Override a status code for the Responder's response.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use actix_web::{HttpRequest, Responder, http::StatusCode};
|
/// use actix_web::{HttpRequest, Responder, http::StatusCode};
|
||||||
|
@ -236,7 +236,7 @@ impl<T: Responder> CustomResponder<T> {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add extra header to the responder's response.
|
/// Add header to the Responder's response.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// use actix_web::{web, HttpRequest, Responder};
|
/// use actix_web::{web, HttpRequest, Responder};
|
||||||
|
|
Loading…
Reference in a new issue