extractHTTPMethodAndName

fnauto extractHTTPMethodAndName(alias Func, bool indexSpecialCase)()

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.

Returns

A tuple of three elements is returned:
  • flag "was UDA used to override path"
  • HTTPMethod extracted
  • URL path extracted