vibe.d beta banner
get vibe.d
0.8.2

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

Module vibe.web.common

Contains common functionality for the REST and WEB interface generators.

Functions

NameDescription
adjustMethodStyle(name, style)Adjusts the naming convention for a given function name to the specified style.
bodyParam(identifier, field)Declare that a parameter will be transmitted to the API through the body.
contentType(data)Attribute to define the content type for methods.
extractHTTPMethodAndName()Determines the HTTP method and path for a given function symbol.
headerParam(identifier, field)Declare that a parameter will be transmitted to the API through the headers.
method(data)Attribute to force a specific HTTP method for an interface method.
path(data)Attibute to force a specific URL path.
queryParam(identifier, field)Declare that a parameter will be transmitted to the API through the query string.
rootPath(path)Scheduled for deprecation - use @path instead.
rootPathFromName()Convenience alias to generate a name from the interface's name.

Classes

NameDescription
RestExceptionRespresents a Rest error response

Enums

NameDescription
MethodStyleDetermines the naming convention of an identifier.
Authors

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

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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