[][src]Struct actix_web::HttpResponse

pub struct HttpResponse(_, _);

An HTTP Response

Methods

impl HttpResponse
[src]

impl HttpResponse
[src]

Create http response builder with specific status.

Create http response builder

Constructs a response

Constructs a response with body

Constructs an error response

Convert HttpResponse to a HttpResponseBuilder

The source error for this response

Get the HTTP version of this response

Get the headers from the response

Get a mutable reference to the headers

Get an iterator for the cookies set by this response

Add a cookie to this response

Remove all cookies with the given name from this response. Returns the number of cookies removed.

Get the response status code

Set the StatusCode for this response

Get custom reason for the response

Set the custom reason for the response

Set connection type

Connection upgrade status

Keep-alive status for this connection

is chunked encoding enabled

Content encoding

Set content encoding

Get body os this response

Set a body

Set a body and return previous body value

Size of response in bytes, excluding HTTP headers

Get write buffer capacity

Set write buffer capacity

Trait Implementations

impl Responder for HttpResponse
[src]

The associated item which can be returned.

The associated error which can be returned.

Convert itself to AsyncResult or Error.

impl<I: Into<HttpResponse>, E: Into<Error>> From<Result<I, E>> for HttpResponse
[src]

Helper converters

Performs the conversion.

impl From<HttpResponseBuilder> for HttpResponse
[src]

Performs the conversion.

impl From<&'static str> for HttpResponse
[src]

Performs the conversion.

impl From<&'static [u8]> for HttpResponse
[src]

Performs the conversion.

impl From<String> for HttpResponse
[src]

Performs the conversion.

impl<'a> From<&'a String> for HttpResponse
[src]

Performs the conversion.

impl From<Bytes> for HttpResponse
[src]

Performs the conversion.

impl From<BytesMut> for HttpResponse
[src]

Performs the conversion.

impl From<Error> for HttpResponse
[src]

Convert Error to a HttpResponse instance

Performs the conversion.

impl Debug for HttpResponse
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for HttpResponse

impl !Sync for HttpResponse

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T