Module http

Source
Expand description

HTTP protocol handling and services module.

This module provides a comprehensive set of components for handling HTTP connections, processing requests, and managing responses. It includes core services, various handlers, protocol detection, and utility functions for working with HTTP.

§Key Components

§Submodules

  • core: Contains the core HTTP service implementation, including HttpCoreService.
  • handlers: Provides various HTTP request handlers for different aspects of request processing.
  • detect: Implements HTTP version detection functionality.

§Structs and Types

§Features

  • Support for both HTTP/1.1 and HTTP/2 protocols
  • Modular design with separate handlers for different aspects of HTTP processing
  • HTTP version detection capabilities
  • Configurable timeout settings for various stages of request handling
  • Utility functions and constants for common HTTP operations

§Performance Considerations

  • The core service and handlers are designed for efficient processing of HTTP requests
  • Connection keep-alive and HTTP/2 multiplexing are supported for improved performance
  • Version detection allows for optimized handling based on the HTTP version

§Error Handling

  • Each component implements its own error handling strategy
  • The core service provides high-level error handling for the entire request lifecycle

§Customization

  • The modular design allows for easy extension and customization of HTTP handling behavior
  • Custom handlers can be implemented and integrated into the HttpCoreService

Re-exports§

pub use self::core::HttpCoreService;
pub use self::core::HttpServerTimeout;

Modules§

core
Core HTTP service implementation for handling downstream client connections.
detect
HTTP version detection and handling module.
handlers
HTTP request handling and processing module.

Enums§

HttpVersion