# Http

The Http component is in charge of providing typed HTTP methods according to RFC 7231 (opens new window).

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

# ConnectMethod

CONNECT defined by ConnectMethod.

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

use Chevere\Components\Http\Methods\ConnectMethod;

$connect = new ConnectMethod();

# DeleteMethod

DELETE defined by DeleteMethod.

Remove all current representations of the target resource.

use Chevere\Components\Http\Methods\DeleteMethod;

$delete = new DeleteMethod();

# GetMethod

GET defined by GetMethod.

Transfer a current representation of the target resource.

use Chevere\Components\Http\Methods\GetMethod;

$get = new GetMethod();

# HeadMethod

HEAD defined by HeadMethod.

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

use Chevere\Components\Http\Methods\HeadMethod;

$head = new HeadMethod();

# OptionsMethod

OPTIONS defined by OptionsMethod.

Describe the communication options for the target resource.

use Chevere\Components\Http\Methods\OptionsMethod;

$options = new OptionsMethod();

# PatchMethod

PATCH defined by PatchMethod.

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

use Chevere\Components\Http\Methods\PatchMethod;

$path = new PatchMethod();

# PostMethod

POST defined by PostMethod.

Perform resource-specific processing on the request payload.

use Chevere\Components\Http\Methods\PostMethod;

$post = new PostMethod();

# PutMethod

PUT defined by PutMethod.

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

use Chevere\Components\Http\Methods\PutMethod;

$put = new PutMethod();

# TraceMethod

TRACE defined by TraceMethod.

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

use Chevere\Components\Http\Methods\TraceMethod;

$trace = new TraceMethod();
Last Updated: 10/24/2021, 2:05:03 PM