Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Crate ntex

Source
Expand description

ntex - framework for composable network services

§Package feature

  • openssl - enables ssl support via openssl crate
  • rustls - enables ssl support via rustls crate
  • compress - enables compression support in http and web modules
  • cookie - 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.
ServiceCtx

Traits§

IntoService
Trait for types that can be converted to a Service
IntoServiceFactory
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 a Response.
ServiceFactory
Factory for creating Services.

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 a Service

Attribute Macros§

main
Marks async function to be executed by ntex system.
test
Marks async test function to be executed by ntex runtime.