Note that these are bit flags that can be used in a mask.
Public Types | |
| null | |
| none | |
| GET = 1 << 0 | |
| get | |
| PUT = 1 << 1 | |
| put | |
| POST = 1 << 2 | |
| post | |
| DEL = 1 << 3 | |
| delete (renamed to avoid macro and keyword conflicts) | |
| OPTIONS = 1 << 4 | |
| options | |
| HEAD = 1 << 5 | |
| head | |
| all = (GET | PUT | POST | DEL | OPTIONS | HEAD) | |
| all | |
| enum | e { null, GET = 1 << 0, PUT = 1 << 1, POST = 1 << 2, DEL = 1 << 3, OPTIONS = 1 << 4, HEAD = 1 << 5, all = (GET | PUT | POST | DEL | OPTIONS | HEAD) } |
| Enumeration. More... | |
Public Member Functions | |
| method_e () | |
| Construct. | |
| method_e (const e &t) | |
| Construct. | |
| method_e (const std::string &t) | |
| Construct, set to null if not recognized. | |
| e | enumeration () const |
| Get enumeration. | |
| bool | is_null () const |
| Test if null. | |
| bool | operator== (const method_e &rhs) const |
| Equal operator. | |
| bool | operator!= (const method_e &rhs) const |
| Not equal operator. | |
| bool | operator< (const method_e &rhs) const |
| Less operator. | |
| const char * | cstring () const |
| Get cstring. | |
Static Public Member Functions | |
| static std::string | mask_to_string (int mask) |
| Get list of types in mask as comma-separated list. | |
| enum restcgi::method_e::e |
1.4.7