Docs.rs
  • actix-http-2.2.1
    • actix-http 2.2.1
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • fafhrd91
    • github:actix:core
    • Dependencies
      • actix ^0.10.0 normal
      • actix-codec ^0.3.0 normal
      • actix-connect ^2.0.0 normal
      • actix-rt ^1.0.0 normal
      • actix-service ^1.0.6 normal
      • actix-threadpool ^0.3.1 normal
      • actix-tls ^2.0.0 normal
      • actix-utils ^2.0.0 normal
      • base64 ^0.13 normal
      • bitflags ^1.2 normal
      • brotli2 ^0.3.2 normal
      • bytes ^0.5.3 normal
      • cookie ^0.14.1 normal
      • copyless ^0.1.4 normal
      • derive_more ^0.99.2 normal
      • either ^1.5.3 normal
      • encoding_rs ^0.8 normal
      • flate2 ^1.0.13 normal
      • futures-channel ^0.3.5 normal
      • futures-core ^0.3.5 normal
      • futures-util ^0.3.5 normal
      • fxhash ^0.2.1 normal
      • h2 ^0.2.1 normal
      • http ^0.2.0 normal
      • httparse ^1.3 normal
      • indexmap ^1.3 normal
      • itoa ^0.4 normal
      • language-tags ^0.2 normal
      • lazy_static ^1.4 normal
      • log ^0.4 normal
      • mime ^0.3 normal
      • percent-encoding ^2.1 normal
      • pin-project ^1.0.0 normal
      • rand ^0.7 normal
      • regex ^1.3 normal
      • serde ^1.0 normal
      • serde_json ^1.0 normal
      • serde_urlencoded ^0.7 normal
      • sha-1 ^0.9 normal
      • slab ^0.4 normal
      • time ^0.2.7 normal
    • Versions
    • 67.58% of the crate is documented
  • Go to latest version
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
☰
logo

Crate actix_http

Version 2.2.1

See all actix_http's items

  • Modules
  • Macros
  • Structs
  • Enums
  • Type Definitions

Modules

  • body
  • client
  • encoding
  • error
  • h1
  • h2
  • http
  • httpmessage
  • test
  • ws

Macros

  • downcast
  • downcast_get_type_id
  • header

Structs

  • Extensions
  • HttpService
  • HttpServiceBuilder
  • Message
  • Request
  • RequestHead
  • Response
  • ResponseBuilder
  • ResponseHead
  • ServiceConfig

Enums

  • KeepAlive
  • Payload
  • Protocol
  • RequestHeadType

Type Definitions

  • PayloadStream
Change settings

Crate actix_http[−][src]

Expand description

HTTP primitives for the Actix ecosystem.

Re-exports

pub use cookie;
pub use self::error::Error;
pub use self::error::ResponseError;
pub use self::error::Result;
pub use self::httpmessage::HttpMessage;

Modules

body
client

Http client api

encoding

Content-Encoding support

error

Error and Result module

h1

HTTP/1 implementation

h2

HTTP/2 implementation

http

Various HTTP related types

httpmessage
test

Test Various helpers for Actix applications to use during testing.

ws

WebSocket protocol support.

Macros

downcast
downcast_get_type_id
header

Structs

Extensions

A type map of request extensions.

HttpService

A ServiceFactory for HTTP/1.1 or HTTP/2 protocol.

HttpServiceBuilder

A HTTP service builder

Message
Request

Request

RequestHead
Response

An HTTP Response

ResponseBuilder

An HTTP response builder

ResponseHead
ServiceConfig

Http service configuration

Enums

KeepAlive

Server keep-alive setting

Payload

Type represent streaming payload

Protocol

Http protocol

RequestHeadType

Type Definitions

PayloadStream

Type represent boxed payload

Results for Error

actix_http::error
Error and Result module
actix_http::error::Error
General purpose actix web error.
actix_http::http::Error
A generic “error” for HTTP connections
actix_http::Response::error
The source error for this response
actix_http::ws::CloseCode::Error
Indicates that a server is terminating the connection …
actix_http::http::header::IntoHeaderValue::Error
The type returned in the event of a conversion error.
actix_http::error::BlockingError::Error
actix_http::error::Error::as_error
Similar to as_response_error but downcasts.
actix_http::client::ConnectError::SslError
SSL error
actix_http::error::ErrorGone
Helper function that creates wrapper of any error and …
actix_http::client::InvalidUrl::HttpError
actix_http::error::CookieParseError::Utf8Error
Decoding the cookie’s name or value resulted in invalid …
actix_http::Response::from_error
Constructs an error response
actix_http::error::ParseError
A set of errors that can occur during parsing HTTP streams
actix_http::error::ContentTypeError::ParseError
Can not parse content type
actix_http::http::header::ToStrError
A possible error when converting a HeaderValue to a …
actix_http::error::ErrorLocked
Helper function that creates wrapper of any error and …
actix_http::client::ConnectError
A set of errors that can occur while connecting to an …
actix_http::error::PayloadError
A set of errors that can occur during payload parsing
actix_http::error::BlockingError
Blocking operation execution error
actix_http::error::DispatchError
A set of errors that can occur during dispatching http …
actix_http::error::ErrorConflict
Helper function that creates wrapper of any error and …
actix_http::error::ErrorNotFound
Helper function that creates wrapper of any error and …
actix_http::error::InternalError
Helper type that can wrap any error and generate custom …
actix_http::error::DispatchError::InternalError
Internal error
actix_http::ws::ProtocolError
Websocket protocol errors
actix_http::error::ResponseError
Error that can be converted to Response
actix_http::error::ResponseError::error_response
Create response for error
actix_http::error::InternalError::error_response
actix_http::ws::HandshakeError::error_response
actix_http::error::ErrorForbidden
Helper function that creates wrapper of any error and …
actix_http::error::ErrorImATeapot
Helper function that creates wrapper of any error and …
actix_http::ws::HandshakeError
Websocket handshake errors
actix_http::error::ErrorBadGateway
Helper function that creates wrapper of any error and …
actix_http::error::ErrorBadRequest
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUriTooLong
Helper function that creates wrapper of any error and …
actix_http::http::StatusCode::is_client_error
Check if status is within 400-499.
actix_http::http::StatusCode::is_server_error
Check if status is within 500-599.
actix_http::error::ContentTypeError
A set of error that can occur during parsing content type
actix_http::error::CookieParseError
Enum corresponding to a parsing error.
actix_http::error::ErrorNotExtended
Helper function that creates wrapper of any error and …
actix_http::client::SendRequestError
A set of errors that can occur during request sending and …
actix_http::error::Error::as_response_error
Returns the reference to the underlying ResponseError.
actix_http::error::ErrorLoopDetected
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUnauthorized
Helper function that creates wrapper of any error and …
actix_http::client::ConnectError::SslHandshakeError
SSL Handshake error
actix_http::error::ErrorNotAcceptable
Helper function that creates wrapper of any error and …
actix_http::client::FreezeRequestError
A set of errors that can occur during freezing a request
actix_http::error::ErrorGatewayTimeout
Helper function that creates wrapper of any error and …
actix_http::error::ErrorLengthRequired
Helper function that creates wrapper of any error and …
actix_http::error::ErrorNotImplemented
Helper function that creates wrapper of any error and …
actix_http::error::ErrorRequestTimeout
Helper function that creates wrapper of any error and …
actix_http::Response::InternalServerError
actix_http::error::ErrorPayloadTooLarge
Helper function that creates wrapper of any error and …
actix_http::error::ErrorPaymentRequired
Helper function that creates wrapper of any error and …
actix_http::error::ErrorTooManyRequests
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUpgradeRequired
Helper function that creates wrapper of any error and …
actix_http::error::ErrorFailedDependency
Helper function that creates wrapper of any error and …
actix_http::error::ErrorMethodNotAllowed
Helper function that creates wrapper of any error and …
actix_http::http::StatusCode::INTERNAL_SERVER_ERROR
500 Internal Server Error [RFC7231, Section 6.6.1]
actix_http::error::ErrorExpectationFailed
Helper function that creates wrapper of any error and …
actix_http::error::ErrorMisdirectedRequest
Helper function that creates wrapper of any error and …
actix_http::error::ErrorPreconditionFailed
Helper function that creates wrapper of any error and …
actix_http::error::ErrorServiceUnavailable
Helper function that creates wrapper of any error and …
actix_http::error::ErrorInsufficientStorage
Helper function that creates wrapper of any error and …
actix_http::error::ErrorInternalServerError
Helper function that creates wrapper of any error and …
actix_http::error::ErrorRangeNotSatisfiable
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUnprocessableEntity
Helper function that creates wrapper of any error and …
actix_http::error::ErrorPreconditionRequired
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUnsupportedMediaType
Helper function that creates wrapper of any error and …
actix_http::error::ErrorVariantAlsoNegotiates
Helper function that creates wrapper of any error and …
actix_http::error::ErrorHttpVersionNotSupported
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUnavailableForLegalReasons
Helper function that creates wrapper of any error and …
actix_http::error::ErrorProxyAuthenticationRequired
Helper function that creates wrapper of any error and …
actix_http::error::ErrorRequestHeaderFieldsTooLarge
Helper function that creates wrapper of any error and …
actix_http::error::ErrorNetworkAuthenticationRequired
Helper function that creates wrapper of any error and …
actix_http::test::TestBuffer::err
actix_http::error::PayloadError::from
actix_http::Response::from
actix_http::client::ConnectError::from
actix_http::client::InvalidUrl::from
actix_http::client::SendRequestError::from
actix_http::error::ParseError::from
actix_http::error::DispatchError::from
actix_http::ws::ProtocolError::from
actix_http::Response::from_error
Constructs an error response
actix_http::Response::error
The source error for this response
actix_http::http::Cookie::fmt
Formats the cookie self as a Set-Cookie header value.
actix_http::error::Canceled::fmt
actix_http::error::BlockingError::fmt
actix_http::error::CookieParseError::fmt
actix_http::http::Error::fmt
actix_http::http::HeaderName::fmt
actix_http::http::HeaderValue::fmt
actix_http::http::Method::fmt
actix_http::http::StatusCode::fmt
actix_http::http::Uri::fmt
actix_http::http::Version::fmt
actix_http::http::CookieBuilder::fmt
actix_http::http::header::InvalidHeaderName::fmt
actix_http::http::header::InvalidHeaderValue::fmt
actix_http::http::header::HeaderMap::fmt
actix_http::http::header::Iter::fmt
actix_http::http::header::IterMut::fmt
actix_http::http::header::IntoIter::fmt
actix_http::http::header::Keys::fmt
actix_http::http::header::Values::fmt
actix_http::http::header::ValuesMut::fmt
actix_http::http::header::Drain::fmt
actix_http::http::header::GetAll::fmt
actix_http::http::header::Entry::fmt
actix_http::http::header::VacantEntry::fmt
actix_http::http::header::OccupiedEntry::fmt
actix_http::http::header::ValueIter::fmt
actix_http::http::header::ValueIterMut::fmt
actix_http::http::header::ValueDrain::fmt
actix_http::http::header::ToStrError::fmt
actix_http::http::uri::Port::fmt
actix_http::http::uri::Authority::fmt
actix_http::http::uri::Builder::fmt
actix_http::http::uri::PathAndQuery::fmt
actix_http::http::uri::Scheme::fmt
actix_http::http::uri::Parts::fmt
actix_http::http::uri::InvalidUri::fmt
actix_http::http::uri::InvalidUriParts::fmt
actix_http::test::TestBuffer::read
actix_http::http::uri::Builder::build
Consumes this builder, and tries to construct a valid Uri …
actix_http::error::Error::cause
actix_http::error::Error::source
actix_http::http::Error::source
actix_http::error::Error::from
actix_http::http::Error::from
actix_http::http::Error::get_ref
Return a reference to the lower level, inner error.
actix_http::error::ErrorGone
Helper function that creates wrapper of any error and …
actix_http::error::ErrorLocked
Helper function that creates wrapper of any error and …
actix_http::error::ErrorConflict
Helper function that creates wrapper of any error and …
actix_http::error::ErrorNotFound
Helper function that creates wrapper of any error and …
actix_http::error::ErrorForbidden
Helper function that creates wrapper of any error and …
actix_http::error::ErrorImATeapot
Helper function that creates wrapper of any error and …
actix_http::error::ErrorBadGateway
Helper function that creates wrapper of any error and …
actix_http::error::ErrorBadRequest
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUriTooLong
Helper function that creates wrapper of any error and …
actix_http::error::ErrorNotExtended
Helper function that creates wrapper of any error and …
actix_http::error::ErrorLoopDetected
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUnauthorized
Helper function that creates wrapper of any error and …
actix_http::error::ErrorNotAcceptable
Helper function that creates wrapper of any error and …
actix_http::error::ErrorGatewayTimeout
Helper function that creates wrapper of any error and …
actix_http::error::ErrorLengthRequired
Helper function that creates wrapper of any error and …
actix_http::error::ErrorNotImplemented
Helper function that creates wrapper of any error and …
actix_http::error::ErrorRequestTimeout
Helper function that creates wrapper of any error and …
actix_http::error::ErrorPayloadTooLarge
Helper function that creates wrapper of any error and …
actix_http::error::ErrorPaymentRequired
Helper function that creates wrapper of any error and …
actix_http::error::ErrorTooManyRequests
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUpgradeRequired
Helper function that creates wrapper of any error and …
actix_http::error::ErrorFailedDependency
Helper function that creates wrapper of any error and …
actix_http::error::ErrorMethodNotAllowed
Helper function that creates wrapper of any error and …
actix_http::error::ErrorExpectationFailed
Helper function that creates wrapper of any error and …
actix_http::error::ErrorMisdirectedRequest
Helper function that creates wrapper of any error and …
actix_http::error::ErrorPreconditionFailed
Helper function that creates wrapper of any error and …
actix_http::error::ErrorServiceUnavailable
Helper function that creates wrapper of any error and …
actix_http::error::ErrorInsufficientStorage
Helper function that creates wrapper of any error and …
actix_http::error::ErrorInternalServerError
Helper function that creates wrapper of any error and …
actix_http::error::ErrorRangeNotSatisfiable
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUnprocessableEntity
Helper function that creates wrapper of any error and …
actix_http::error::ErrorPreconditionRequired
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUnsupportedMediaType
Helper function that creates wrapper of any error and …
actix_http::error::ErrorVariantAlsoNegotiates
Helper function that creates wrapper of any error and …
actix_http::error::ErrorHttpVersionNotSupported
Helper function that creates wrapper of any error and …
actix_http::error::ErrorUnavailableForLegalReasons
Helper function that creates wrapper of any error and …
actix_http::error::ErrorProxyAuthenticationRequired
Helper function that creates wrapper of any error and …
actix_http::error::ErrorRequestHeaderFieldsTooLarge
Helper function that creates wrapper of any error and …
actix_http::error::ErrorNetworkAuthenticationRequired
Helper function that creates wrapper of any error and …