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

2.1     ! frystyk     1: <HTML>
        !             2: <HEAD>
        !             3: <TITLE>Method Management</TITLE>
        !             4: <NEXTID N="z11">
        !             5: </HEAD>
        !             6: <BODY>
        !             7: 
        !             8: <H1>Method Management</H1>
        !             9: 
        !            10: <PRE>
        !            11: /*
        !            12: **     (c) COPYRIGHT MIT 1995.
        !            13: **     Please first read the full copyright statement in the file COPYRIGH.
        !            14: */
        !            15: </PRE>
        !            16: 
        !            17: This module keeps a list of valid methods to be used on a request
        !            18: obejct. It used to be in <A HREF="HTAccess.html">HTAccess module</A>
        !            19: but for future extensions, it is now in its own module. <P>
        !            20: 
        !            21: This module is implemented by <A HREF="HTmethod.c">HTmethod.c</A>, and
        !            22: it is a part of the <A NAME="z10"
        !            23: HREF="http://www.w3.org/hypertext/WWW/Library/User/Guide/Guide.html">Library
        !            24: of Common Code</A>. <P>
        !            25: 
        !            26: <PRE>
        !            27: #ifndef HTMETHOD_H
        !            28: #define HTMETHOD_H
        !            29: 
        !            30: </PRE>
        !            31: 
        !            32: These are the valid methods, see <A
        !            33: HREF="http://www.w3.org/hypertext/WWW/Protocols/HTTP/Methods.html">HTTP
        !            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