Expand description
ntex - framework for composable network services
§Package feature
openssl
- enables ssl support viaopenssl
craterustls
- enables ssl support viarustls
cratecompress
- enables compression support in http and web modulescookie
- enables cookie support in http and web modules
Modules§
- channel
- Communication primitives
- codec
- Utilities for encoding and decoding frames.
- connect
- Tcp connector service
- http
- Http protocol support.
- io
- IO streaming utilities.
- router
- Resource path matching library.
- rt
- A runtime implementation that runs everything on the current thread.
- server
- General purpose tcp server
- service
- task
- A synchronization primitive for task wakeup.
- testing
- IO testing utilities.
- time
- Utilities for tracking time.
- tls
- TLS support for ntex ecosystem.
- util
- web
- Web framework for Rust.
- ws
- WebSocket protocol support.
Macros§
- forward_
poll - An implementation of [
poll
] that forwards poll call to a field. - forward_
ready - An implementation of [
ready
] that forwards readiness checks to a field. - forward_
shutdown - An implementation of [
shutdown
] that forwards shutdown checks to a field.
Structs§
- Pipeline
- Container for a service.
- Service
Ctx
Traits§
- Into
Service - Trait for types that can be converted to a
Service
- Into
Service Factory - Trait for types that can be converted to a
ServiceFactory
- Middleware
- The
Middleware
trait defines the interface of a service factory that wraps inner service during construction. - Service
- An asynchronous function of
Request
to aResponse
. - Service
Factory - Factory for creating
Service
s.
Functions§
- chain
- Constructs new chain with one service.
- chain_
factory - Constructs new chain factory with one service factory.
- fn_
service - Create
ServiceFactory
for function that can act as aService