The OpenD Programming Language

PreferredMethod

Sets the preferred request method, used by things like other code generators. While this is preferred, the function is still callable from any request method.

By default, the preferred method is GET if the name starts with "get" and POST otherwise.

See also: RequirePost, ensureGoodPost, and using Cgi.RequestMethod as an attribute

struct PreferredMethod {
Cgi.RequestMethod preferredMethod;
}

Meta