Class RestResponseDefinition

Assembly: redb.Route.Http.dll

Last step of a REST route: writes the Produces media type, marshals a CLR object body to
JSON under JSON binding, and answers 204 when the route left no body and set no status.
The status code itself is the HTTP consumer's contract: header redbHttp.ResponseCode.

public sealed class RestResponseDefinition : ProcessorDefinition, IProcessorDefinition

Inheritance

Object→ProcessorDefinition→RestResponseDefinition

Implements

Inherited Members

Methods

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)