Interface IParameterOptionsWithHeaderSource

Options for Parameter decorator, which defines the source of the paremeter as from HTTP request header.

interface IParameterOptionsWithHeaderSource {
    name?: Nilable<string>;
    source: Nilable<"header">;
    transformTo?: Nilable<ParameterDataTransformTo>;
}

Hierarchy

Properties

name?: Nilable<string>

The custom header name.

source: Nilable<"header">

The name of the source.

transformTo?: Nilable<ParameterDataTransformTo>

A custom function, which transforms input data to a new format / type.

Generated using TypeDoc