Struct actix_web::HttpResponse [] [src]

pub struct HttpResponse(_);

An HTTP Response

Methods

impl HttpResponse
[src]

[src]

Create http response builder with specific status.

[src]

Constructs a response

[src]

Constructs a error response

[src]

The source error for this response

[src]

Get the HTTP version of this response.

[src]

Get the headers from the response.

[src]

Get a mutable reference to the headers.

[src]

Get the status from the server.

[src]

Set the StatusCode for this response.

[src]

Get custom reason for the response.

[src]

Set the custom reason for the response.

[src]

Set connection type

[src]

Connection upgrade status

[src]

Keep-alive status for this connection

[src]

is chunked encoding enabled

[src]

Content encoding

[src]

Set content encoding

[src]

Get body os this response

[src]

Set a body

[src]

Set a body and return previous body value

[src]

Size of response in bytes, excluding HTTP headers

impl HttpResponse
[src]

Trait Implementations

impl Drop for HttpResponse
[src]

[src]

Executes the destructor for this type. Read more

impl Debug for HttpResponse
[src]

[src]

Formats the value using the given formatter.

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

Helper converters

[src]

Performs the conversion.

impl From<HttpResponseBuilder> for HttpResponse
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<String> for HttpResponse
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<Bytes> for HttpResponse
[src]

[src]

Performs the conversion.

impl From<BytesMut> for HttpResponse
[src]

[src]

Performs the conversion.

impl Responder for HttpResponse
[src]

The associated item which can be returned.

The associated error which can be returned.

[src]

Convert itself to Reply or Error.

impl From<Error> for HttpResponse
[src]

HttpResponse for Error

[src]

Performs the conversion.

impl From<StaticResponse> for HttpResponse
[src]

[src]

Performs the conversion.