Documentation

HttpMethodsClientInterface extends HttpClient

Convenience HTTP client that integrates the MessageFactory in order to send requests in the following form:.

$client ->get('/foo') ->post('/bar') ;

The client also exposes the sendRequest methods of the wrapped HttpClient.

Tags
author

Márk Sági-Kazár mark.sagikazar@gmail.com

author

David Buchmann mail@davidbu.ch

Table of Contents

Methods

delete()  : ResponseInterface
Sends a DELETE request.
get()  : ResponseInterface
Sends a GET request.
head()  : ResponseInterface
Sends an HEAD request.
options()  : ResponseInterface
Sends an OPTIONS request.
patch()  : ResponseInterface
Sends a PATCH request.
post()  : ResponseInterface
Sends a POST request.
put()  : ResponseInterface
Sends a PUT request.
send()  : ResponseInterface
Sends a request with any HTTP method.
sendRequest()  : ResponseInterface
Sends a PSR-7 request and returns a PSR-7 response.
trace()  : ResponseInterface
Sends a TRACE request.

Methods


        
On this page

Search results