Module vibe.http.restutil

Helper module for vibe.http.rest that contains various utility templates and functions that use D static introspection capabilities. Separated to keep main module concentrated on HTTP/API related functionality. Is not intended for direct usage but some utilities here are pretty general.

Some of the templates/functions may someday make their way into wider use.

Templates

Name Description
ReturnTypeString
getSymbols Returns a tuple consisting of all symbols type T consists of that may need explicit qualification. Implementation is incomplete and tuned for REST interface generation needs.
legacyfullyQualifiedNameImpl
temporary_moduleName
temporary_packageName

Global variables

Name Type Description
cloneFunction string Clones function signature including its name so that resulting string can be mixed into descendant class to override it. All symbols in resulting string are fully qualified.
isPropertyGetter void Distinguishes getters from setters by their function signatures.
isPropertySetter void Close relative of isPropertyGetter
legacyfullyQualifiedName void
returnsRef bool

Authors

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

Copyright

© 2012 RejectedSoftware e.K.

License

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