mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-24 22:37:35 +02:00
don't use rust annotation on code doc blocks
This commit is contained in:
@ -47,7 +47,7 @@ enum SslConnector {
|
||||
/// The `Connector` type uses a builder-like combinator pattern for service
|
||||
/// construction that finishes by calling the `.finish()` method.
|
||||
///
|
||||
/// ```rust,ignore
|
||||
/// ```ignore
|
||||
/// use std::time::Duration;
|
||||
/// use actix_http::client::Connector;
|
||||
///
|
||||
|
@ -483,7 +483,7 @@ where
|
||||
/// response as opposite to *INTERNAL SERVER ERROR* which is defined by
|
||||
/// default.
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// # use std::io;
|
||||
/// # use actix_http::*;
|
||||
///
|
||||
|
@ -36,7 +36,7 @@ use crate::header::{
|
||||
/// builder.insert_header(CacheControl(vec![CacheDirective::MaxAge(86400u32)]));
|
||||
/// ```
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use actix_http::Response;
|
||||
/// use actix_http::http::header::{CacheControl, CacheDirective};
|
||||
///
|
||||
|
@ -357,7 +357,7 @@ impl ResponseBuilder {
|
||||
|
||||
/// Insert a header, replacing any that were set with an equivalent field name.
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// # use actix_http::Response;
|
||||
/// use actix_http::http::header::ContentType;
|
||||
///
|
||||
@ -384,7 +384,7 @@ impl ResponseBuilder {
|
||||
|
||||
/// Append a header, keeping any that were set with an equivalent field name.
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// # use actix_http::Response;
|
||||
/// use actix_http::http::header::ContentType;
|
||||
///
|
||||
@ -525,7 +525,7 @@ impl ResponseBuilder {
|
||||
|
||||
/// Set a cookie
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use actix_http::{http, Request, Response};
|
||||
///
|
||||
/// fn index(req: Request) -> Response {
|
||||
@ -555,7 +555,7 @@ impl ResponseBuilder {
|
||||
|
||||
/// Remove cookie
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// use actix_http::{http, Request, Response, HttpMessage};
|
||||
///
|
||||
/// fn index(req: Request) -> Response {
|
||||
|
@ -26,7 +26,7 @@ use crate::{
|
||||
|
||||
/// Test `Request` builder
|
||||
///
|
||||
/// ```rust,ignore
|
||||
/// ```ignore
|
||||
/// # use http::{header, StatusCode};
|
||||
/// # use actix_web::*;
|
||||
/// use actix_web::test::TestRequest;
|
||||
|
Reference in New Issue
Block a user