Struct actix_web::HttpResponseBuilder [] [src]

pub struct HttpResponseBuilder { /* fields omitted */ }

An HTTP response builder

This type can be used to construct an instance of HttpResponse through a builder-like pattern.

Methods

impl HttpResponseBuilder
[src]

[src]

Get the HTTP version of this response.

[src]

Set the StatusCode for this response.

[src]

Set a header.

[src]

Set the custom reason for the response.

[src]

Set connection type

[src]

Set connection type to Upgrade

[src]

Force close connection, even if it is marked as keep-alive

[src]

Enables automatic chunked transfer encoding

[src]

Set response content type

[src]

Set a cookie

Remote cookie, cookie has to be cookie from HttpRequest::cookies() method.

[src]

[src]

Set a body

[src]

Set an empty body

Trait Implementations

impl Debug for HttpResponseBuilder
[src]

[src]

Formats the value using the given formatter.