[][src]Module chttp::middleware

HTTP client middleware API.

This module provides the core types and functions for defining and working with middleware. Middleware are handlers that augment HTTP client functionality by applying transformations to HTTP requests before they are sent and/or HTTP responses after they are received.

Traits

Middleware

Base trait for middleware.

Functions

after

Create a new response middleware from a function.

before

Create a new request middleware from a function.

create

Create a new middleware from a pair of functions.