vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Class RestInterfaceSettings

Encapsulates settings used to customize the generated REST interface.

class RestInterfaceSettings ;

Fields

NameTypeDescription
allowedOrigins string[]List of allowed origins for CORS
baseURL URLThe public URL below which the REST interface is registered.
content_type stringThe 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 HTTPClientSettingsOverrides the default HTTP client settings used by the RestInterfaceClient.
methodStyle MethodStyleNaming convention used for the generated URLs.
stripTrailingUnderscore boolIgnores a trailing underscore in method and function names.

Properties

NameTypeDescription
dup[get] RestInterfaceSettings
Authors

Sönke Ludwig, Михаил Страшун, Mathias 'Geod24' Lang

Copyright

© 2012-2018 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.