Annotation of libwww/Library/src/HTMethod.html, revision 2.5

2.1       frystyk     1: <HTML>
                      2: <HEAD>
                      3: <TITLE>Method Management</TITLE>
2.5     ! frystyk     4: <!-- Changed by: Henrik Frystyk Nielsen,  6-Oct-1995 -->
2.1       frystyk     5: <NEXTID N="z11">
                      6: </HEAD>
                      7: <BODY>
                      8: 
                      9: <H1>Method Management</H1>
                     10: 
                     11: <PRE>
                     12: /*
                     13: **     (c) COPYRIGHT MIT 1995.
                     14: **     Please first read the full copyright statement in the file COPYRIGH.
                     15: */
                     16: </PRE>
                     17: 
                     18: This module keeps a list of valid methods to be used on a request
2.4       frystyk    19: obejct. It used to be in <A HREF="HTReq.html">HTAccess module</A>
2.1       frystyk    20: but for future extensions, it is now in its own module. <P>
                     21: 
2.5     ! frystyk    22: This module is implemented by <A HREF="HTMethod.c">HTmethod.c</A>, and
        !            23: it is a part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C
        !            24: Reference Library</A>. <P>
2.1       frystyk    25: 
                     26: <PRE>
                     27: #ifndef HTMETHOD_H
                     28: #define HTMETHOD_H
                     29: 
                     30: </PRE>
                     31: 
                     32: These are the valid methods, see <A
2.3       frystyk    33: HREF="http://www.w3.org/pub/WWW/Protocols/HTTP/Methods.html">HTTP
2.1       frystyk    34: Methods</A>. <P>
                     35: 
                     36: <B>NOTE:</B> the anchor list of allowed methods is now a bitflag, not
                     37: at list.
                     38: 
                     39: <PRE>
                     40: typedef enum {
                     41:     METHOD_INVALID     = 0x0,
                     42:     METHOD_GET         = 0x1,
                     43:     METHOD_HEAD                = 0x2,    
                     44:     METHOD_POST                = 0x4,    
                     45:     METHOD_PUT         = 0x8,    
                     46:     METHOD_DELETE      = 0x10,
                     47:     METHOD_LINK                = 0x20,
                     48:     METHOD_UNLINK      = 0x40
                     49: } HTMethod;
                     50: </PRE>
                     51: 
                     52: <H3>Get Method Enumeration</H3>
                     53: 
                     54: Gives the enumeration value of the method as a function of the (char *) name.
                     55: 
                     56: <PRE>
                     57: extern HTMethod HTMethod_enum PARAMS((CONST char * name));
                     58: </PRE>
                     59: 
                     60: <H3>Get Method String</H3>
                     61: 
                     62: The reverse of <I>HTMethod_enum()</I>
                     63: 
                     64: <PRE>
                     65: extern CONST char * HTMethod_name PARAMS((HTMethod method));
                     66: </PRE>
                     67: 
                     68: <PRE>
                     69: #endif /* HTMETHOD_H */
                     70: </PRE>
                     71: 
                     72: End of Declaration module
                     73: 
                     74: </BODY>
                     75: </HTML>

Webmaster