Class RestInterfaceSettings
Encapsulates settings used to customize the generated REST interface.
class RestInterfaceSettings
;
Fields
Name | Type | Description |
---|---|---|
allowedOrigins
|
string[] | List of allowed origins for CORS |
baseURL
|
URL | The public URL below which the REST interface is registered. |
content_type
|
string | The content type the client would like to receive the data back |
errorHandler
|
@safe void delegate(HTTPServerRequest, HTTPServerResponse, RestErrorInformation) | Optional handler used to render custom replies in case of errors. |
httpClientSettings
|
HTTPClientSettings | Overrides the default HTTP client settings used by the RestInterfaceClient .
|
methodStyle
|
MethodStyle | Naming convention used for the generated URLs. |
stripTrailingUnderscore
|
bool | Ignores a trailing underscore in method and function names. |
Properties
Name | Type | Description |
---|---|---|
dup [get]
|
RestInterfaceSettings |