Expand description
HTTP service and service factory traits.
Structs§
- FnHttp
Service - A
HttpService
that is created from a function. - FnHttp
Service Factory - A
HttpServiceFactory
that creates aFnHttpService
from a function. - Service
Clone Factory - A
HttpServiceFactory
that simply clones the given service for each new connection. - Tower
Make Service Factory tower
- A
HttpServiceFactory
that wraps atower::MakeService
. The giventower::MakeService
will be called to create a new service for each new connection. - Tower
Make Service With Addr Factory tower
- A
HttpServiceFactory
that wraps atower::MakeService
that takes aSocketAddr
as input.
Traits§
- Http
Service - A trait representing an HTTP service.
- Http
Service Factory - A trait representing an HTTP service factory.
Functions§
- custom_
tower_ make_ service_ factory tower
- Create a
TowerMakeServiceFactory
from a giventower::MakeService
andtarget
value. - fn_
http_ service - Create a
FnHttpService
from a given function. - fn_
http_ service_ factory - Create a
FnHttpServiceFactory
from a given function. - service_
clone_ factory - Create a
ServiceCloneFactory
from a given service. - tower_
make_ service_ factory tower
- Create a
TowerMakeServiceFactory
from a giventower::MakeService
. - tower_
make_ service_ with_ addr_ factory tower
- Create a
TowerMakeServiceWithAddrFactory
from a giventower::MakeService
.