enum EE::Network::Http::Request::Method

Overview

Enumerate the available HTTP methods for a request. More…

#include <http.hpp>

enum Method {
    Get,
    Head,
    Post,
    Put,
    Delete,
    Options,
    Patch,
    Connect,
};

Detailed Documentation

Enumerate the available HTTP methods for a request.

Enum Values

Get

The GET method requests a representation of the specified resource. Requests using GET should only retrieve data.

Head

Request a page’s header only.

Post

The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.

Put

The PUT method replaces all current representations of the target resource with the request payload.

Delete

The DELETE method deletes the specified resource.

Options

The OPTIONS method is used to describe the communication options for the target resource.

Patch

The PATCH method is used to apply partial modifications to a resource.

Connect

resource. It can be used to open a tunnel.

The CONNECT method starts two-way communications with the requested