Crate ntex[][src]

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

Communication primitives

Utilities for encoding and decoding frames.

Tcp connector service

Http protocol support.

Resource path matching library.

A runtime implementation that runs everything on the current thread.

General purpose tcp server

A synchronization primitive for task wakeup.

Utilities for tracking time.

Web framework for Rust.

WebSocket protocol support.

Traits

Trait for types that can be converted to a Service

Trait for types that can be converted to a ServiceFactory

An asynchronous function from Request to a Response.

Creates new Service values.

A Sink is a value into which other values can be sent, asynchronously.

A stream of values produced asynchronously.

The Transform trait defines the interface of a service factory that wraps inner service during construction.

Functions

Apply tranform function to a service.

Create ServiceFactory for function that can produce services

Create ServiceFactory for function that accepts config argument and can produce services

Create ServiceFactory for function that can act as a Service

Convert object of type T to a service S

Contruct new pipeline with one service in pipeline chain.

Contruct new pipeline factory with one service factory.

Attribute Macros

Marks async function to be executed by ntex system.

Marks async test function to be executed by ntex runtime.