## soup-method

soup-method — HTTP method-related defines.

## Synopsis

    #define     SOUP_METHOD_POST
    #define     SOUP_METHOD_GET
    #define     SOUP_METHOD_HEAD
    #define     SOUP_METHOD_OPTIONS
    #define     SOUP_METHOD_PUT
    #define     SOUP_METHOD_MOVE
    #define     SOUP_METHOD_COPY
    #define     SOUP_METHOD_DELETE
    #define     SOUP_METHOD_TRACE
    #define     SOUP_METHOD_CONNECT
    #define     SOUP_METHOD_MKCOL
    #define     SOUP_METHOD_PROPPATCH
    #define     SOUP_METHOD_PROPFIND
    #define     SOUP_METHOD_PATCH
    #define     SOUP_METHOD_LOCK
    #define     SOUP_METHOD_UNLOCK
    enum        SoupMethodId;
    SoupMethodId soup_method_get_id             (const char *method);

## Description

These can be used if you don't want to specify the HTTP method to `soup_message_new()` as an explicit string. This is purely a stylistic consideration. There is no difference between using the define and the string itself.

## Details

### SOUP_METHOD_POST

    #define SOUP_METHOD_POST      "POST"

### SOUP_METHOD_GET

    #define SOUP_METHOD_GET       "GET"

### SOUP_METHOD_HEAD

    #define SOUP_METHOD_HEAD      "HEAD"

### SOUP_METHOD_OPTIONS

    #define SOUP_METHOD_OPTIONS   "OPTIONS"

### SOUP_METHOD_PUT

    #define SOUP_METHOD_PUT       "PUT"

### SOUP_METHOD_MOVE

    #define SOUP_METHOD_MOVE      "MOVE"

### SOUP_METHOD_COPY

    #define SOUP_METHOD_COPY      "COPY"

### SOUP_METHOD_DELETE

    #define SOUP_METHOD_DELETE    "DELETE"

### SOUP_METHOD_TRACE

    #define SOUP_METHOD_TRACE     "TRACE"

### SOUP_METHOD_CONNECT

    #define SOUP_METHOD_CONNECT   "CONNECT"

### SOUP_METHOD_MKCOL

    #define SOUP_METHOD_MKCOL     "MKCOL"

### SOUP_METHOD_PROPPATCH

    #define SOUP_METHOD_PROPPATCH "PROPPATCH"

### SOUP_METHOD_PROPFIND

    #define SOUP_METHOD_PROPFIND  "PROPFIND"

### SOUP_METHOD_PATCH

    #define SOUP_METHOD_PATCH     "PATCH"

### SOUP_METHOD_LOCK

    #define SOUP_METHOD_LOCK      "LOCK"

### SOUP_METHOD_UNLOCK

    #define SOUP_METHOD_UNLOCK    "UNLOCK"

### enum SoupMethodId

    typedef enum {
    	SOUP_METHOD_ID_UNKNOWN = 0,
    	SOUP_METHOD_ID_POST,
    	SOUP_METHOD_ID_GET,
    	SOUP_METHOD_ID_HEAD,
    	SOUP_METHOD_ID_OPTIONS,
    	SOUP_METHOD_ID_PUT,
    	SOUP_METHOD_ID_MOVE,
    	SOUP_METHOD_ID_COPY,
    	SOUP_METHOD_ID_DELETE,
    	SOUP_METHOD_ID_TRACE,
    	SOUP_METHOD_ID_CONNECT,
    	SOUP_METHOD_ID_MKCOL,
    	SOUP_METHOD_ID_PROPPATCH,
    	SOUP_METHOD_ID_PROPFIND,
    	SOUP_METHOD_ID_PATCH,
    	SOUP_METHOD_ID_LOCK,
    	SOUP_METHOD_ID_UNLOCK
    } SoupMethodId;

This enumeration is used internally by routines that need to check the HTTP method in a SoupMessage against several different possibilities, to avoid repeated `strcmp()`s.

### soup_method_get_id ()

    SoupMethodId soup_method_get_id             (const char *method);

Converts `method` into a corresponding SoupMethodId (possibly `SOUP_METHOD_ID_UNKNOWN`).

`method` : | an HTTP method
Returns : | the SoupMethodId