constructor HTTP_Client::HTTP_Client()

constructor HTTP_Client::HTTP_Client() – Constructor


require_once 'HTTP/Client.php';

void constructor HTTP_Client::HTTP_Client ( array $defaultRequestParams = null , array $defaultHeaders = null )


Sets default request parameters and default headers.


array $defaultRequestParams

Parameters to pass to HTTP_Request's constructor

array $defaultHeaders

Default headers to send on every request


throws no exceptions thrown


This function can not be called statically.

A simple HTTP client class. (Previous) Adds a Listener to the list of listeners that are notified of the object's events (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.