restcgi::method_e Class Reference

List of all members.

Detailed Description

Method type enumeration.

Note that these are bit flags that can be used in a mask.

See also:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html


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.


Member Enumeration Documentation

enum restcgi::method_e::e

Enumeration.

Enumerator:
null  none
GET  get
PUT  put
POST  post
DEL  delete (renamed to avoid macro and keyword conflicts)
OPTIONS  options
HEAD  head
all  all


Generated on Fri May 15 11:27:12 2009 for restcgi by  doxygen 1.4.7