Function extractHTTPMethodAndName

Uses given function symbol to determine which HTTP method and what URL path should be used to access it in REST API.

Is designed for CTFE usage and will assert at run time.

Prototype

auto extractHTTPMethodAndName(alias Func)();

Returns

Tuple of three elements: flag "was UDA used to override path" HTTPMethod extracted url path extracted

Authors

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

Copyright

© 2012-2013 RejectedSoftware e.K.

License

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