# Http

The Http component is in charge of providing typed HTTP methods according to RFC 7231.

MethodInterface describes the interface for the component in charge of defining an a HTTP method.

# ConnectMethod

CONNECT

Establish a tunnel to the server identified by the target resource.

use Chevere\Components\Http\Methods\ConnectMethod;

$connect = new ConnectMethod();

# DeleteMethod

DELETE

Remove all current representations of the target resource.

use Chevere\Components\Http\Methods\DeleteMethod;

$delete = new DeleteMethod();

# GetMethod

GET

Transfer a current representation of the target resource.

use Chevere\Components\Http\Methods\GetMethod;

$get = new GetMethod();

# HeadMethod

HEAD

Same as GET, but only transfer the status line and header section.

use Chevere\Components\Http\Methods\HeadMethod;

$head = new HeadMethod();

# OptionsMethod

OPTIONS

Describe the communication options for the target resource.

use Chevere\Components\Http\Methods\OptionsMethod;

$options = new OptionsMethod();

# PatchMethod

PATCH

Apply partial modifications described in the request entity to the target resource.

use Chevere\Components\Http\Methods\PatchMethod;

$path = new PatchMethod();

# PostMethod

POST

Perform resource-specific processing on the request payload.

use Chevere\Components\Http\Methods\PostMethod;

$post = new PostMethod();

# PutMethod

PUT

Replace all current representations of the target resource with the request payload.

use Chevere\Components\Http\Methods\PutMethod;

$put = new PutMethod();

# TraceMethod

TRACE

Perform a message loop-back test along the path to the target resource.

use Chevere\Components\Http\Methods\TraceMethod;

$trace = new TraceMethod();