# Http

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

The Chevere/Interfaces/Http/MethodInterface describes the interface for the component in charge of defining a HTTP method.

# ConnectMethod


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

use Chevere\Http\Methods\ConnectMethod;

$connect = new ConnectMethod();

# DeleteMethod


Remove all current representations of the target resource.

use Chevere\Http\Methods\DeleteMethod;

$delete = new DeleteMethod();

# GetMethod


Transfer a current representation of the target resource.

use Chevere\Http\Methods\GetMethod;

$get = new GetMethod();

# HeadMethod


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

use Chevere\Http\Methods\HeadMethod;

$head = new HeadMethod();

# OptionsMethod


Describe the communication options for the target resource.

use Chevere\Http\Methods\OptionsMethod;

$options = new OptionsMethod();

# PatchMethod


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

use Chevere\Http\Methods\PatchMethod;

$path = new PatchMethod();

# PostMethod


Perform resource-specific processing on the request payload.

use Chevere\Http\Methods\PostMethod;

$post = new PostMethod();

# PutMethod


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

use Chevere\Http\Methods\PutMethod;

$put = new PutMethod();

# TraceMethod


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

use Chevere\Http\Methods\TraceMethod;

$trace = new TraceMethod();
Last Updated: 10/11/2022, 11:12:32 PM