PEAR Manual
Prev |  | Next

# constructor HTTP_Client::HTTP_Client()

constructor HTTP_Client::HTTP_Client() -- Constructor

## Synopsis

    require_once 'HTTP/Client.php';

``void constructor HTTP_Client::HTTP_Client` ([array $defaultRequestParams = `NULL` [, array $defaultHeaders = `NULL`]])`

## Description

Sets default request parameters and default headers.

## Parameter

array `$defaultRequestParams`

  Parameters to pass to HTTP_Request's constructor

array `$defaultHeaders`

  Default headers to send on every request

## Throws

throws no exceptions thrown

## See

see setDefaultHeader(), setRequestParameter()

## Note

This function can not be called statically.

Prev | Home | Next
Class Summary HTTP_Client | Up | HTTP_Client::attach()