Documentation

Request
in package
implements RequestInterface uses MessageTrait, RequestTrait

Tags
author

Tobias Nyholm tobias.nyholm@gmail.com

author

Martijn van der Ven martijn@vanderven.se

final

This class should never be extended. See https://github.com/Nyholm/psr7/blob/master/doc/final.md

Table of Contents

Interfaces

RequestInterface
Representation of an outgoing, client-side request.

Methods

__construct()  : mixed

Methods

__construct()

public __construct(string $method, string|UriInterface $uri[, array<string|int, mixed> $headers = [] ][, string|resource|StreamInterface|null $body = null ][, string $version = '1.1' ]) : mixed
Parameters
$method : string

HTTP method

$uri : string|UriInterface

URI

$headers : array<string|int, mixed> = []

Request headers

$body : string|resource|StreamInterface|null = null

Request body

$version : string = '1.1'

Protocol version


        
On this page

Search results