Struct actix_web::HttpResponse[][src]

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

Important traits for &'a mut R
[]

Set the custom reason for the response

Important traits for &'a mut R
[]

Set connection type

[]

Connection upgrade status

[]

Keep-alive status for this connection

[]

is chunked encoding enabled

[]

Content encoding

Important traits for &'a mut R
[]

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

[]

Set 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 Debug for HttpResponse
[src]
[+]

[]

Formats the value using the given formatter. Read more

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.

Auto Trait Implementations

impl !Send for HttpResponse

impl !Sync for HttpResponse