# http_request

class http_request

Access the HTTP Request

## Methods

get_http_request($add_headers = false)

Construtor Retrieve HTTP Body

method()

Retrieve HTTP Method

body()

Retrieve HTTP Body

array
error()

Retrieve HTTP request error

mixed
headers($name = '')

Retrieve all HTTP Headers

send_http_request($url, $referer, $data, $method = 'POST', $content_type = 'application/x-www-form-urlencoded')

Send HTTP request

decode_chunked($str)

No description

## Details

###
at line 44
`get_http_request($add_headers = false)`

Construtor Retrieve HTTP Body

#### Parameters

| $add_headers |

###
at line 81
`method()`

Retrieve HTTP Method

###
at line 89
`body()`

Retrieve HTTP Body

###
at line 98
`array error()`

Retrieve HTTP request error

#### Return Value

array |

###
at line 108
`mixed headers($name = '')`

Retrieve all HTTP Headers

#### Parameters

| $name |

#### Return Value

mixed |

###
at line 125
`send_http_request($url, $referer, $data, $method = 'POST', $content_type = 'application/x-www-form-urlencoded')`

Send HTTP request

#### Parameters

| $url |
| $referer |
| $data |
| $method |
| $content_type |

###
at line 192
`decode_chunked($str)`

No description

#### Parameters

| $str |