vibe.d beta banner
get vibe.d
0.7.30

Function extractHTTPMethodAndName

Determines the HTTP method and path for a given function symbol.

The final method and path are determined from the function name, as well as any @method and @path attributes that may be applied to it.

This function is designed for CTFE usage and will assert at run time.

Prototype

auto extractHTTPMethodAndName(alias Func, bool indexSpecialCase)();

Returns

A tuple of three elements is returned:

  • flag "was UDA used to override path"
  • HTTPMethod extracted
  • URL path extracted

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.