Module server

Module server 

Source
Expand description

The Conjure HTTP server API.

Modules§

conjure
Implementations for Conjure-generated endpoints.
runtime
Runtime configuration for Conjure servers.

Structs§

BoxAsyncEndpoint
A boxed AsyncEndpoint trait object.
BoxAsyncWriteBody
A boxed AsyncWriteBody trait object.
ConjureRuntime
A type providing server logic that is configured at runtime.
FromDecoder
A decoder which maps the output of another with From::from.
FromRequestDeserializer
A request deserializer which maps the output of another with From::from.
FromStrSeqDecoder
A decoder which converts a sequence of values via its FromStr implementation into a collection via a FromIterator implementation.
JsonEncoding
An Encoding using conjure_serde::json.
RequestContext
An object containing extra low-level contextual information about a request.
SmileEncoding
An Encoding using conjure_serde::smile.
UseLegacyErrorSerialization
A marker value to opt into legacy error serialization.

Enums§

AsyncResponseBody
The response body returned from an async endpoint.
EmptyResponseSerializer
A serializer which encodes () as an empty body and status code of 204 No Content.
FromStrDecoder
A decoder which converts a single value using its FromStr implementation.
FromStrOptionDecoder
A decoder which converts an optional value using its FromStr implementation.
PathSegment
One segment of an endpoint URI template.
ResponseBody
The response body returned from a blocking endpoint.
StdRequestDeserializer
A request deserializer for standard body types.
StdResponseSerializer
A body serializer for standard response types.

Traits§

AsyncDeserializeRequest
A trait implemented by response deserializers used by custom async Conjure server trait implementations.
AsyncEndpoint
A nonblocking HTTP endpoint.
AsyncSerializeResponse
A trait implemented by response serializers used by custom async Conjure server trait implementations.
AsyncService
An async Conjure service.
AsyncWriteBody
A trait implemented by asynchronous streaming bodies.
DecodeHeader
A trait implemented by header decoders used by custom Conjure server trait implementations.
DecodeParam
A trait implemented by URL parameter decoders used by custom Conjure server trait implementations.
DeserializeRequest
A trait implemented by request body deserializers used by custom Conjure server trait implementations.
DeserializerState
An intermediate state between an Encoding and Deserializer.
Encoding
An encoding of HTTP bodies.
Endpoint
A blocking HTTP endpoint.
EndpointMetadata
Metadata about an HTTP endpoint.
SerializeResponse
A trait implemented by response serializers used by custom Conjure server trait implementations.
SerializerState
An intermediate state between an Encoding and Serializer.
Service
A blocking Conjure service.
WriteBody
A trait implemented by streaming bodies.