# Class AbstractHttp

#### Direct known subclasses

SMSApi\Proxy\Http\Curl, SMSApi\Proxy\Http\Native
Abstract
Namespace: SMSApi\Proxy\Http
Located at Proxy/Http/AbstractHttp.php

Methods summary
`public` | # `__construct( $host )`
`public` | # `getHost( )`
`public` | # `getPort( )`
`public` | # `getProtocol( )`
`public` | # `execute( `SMSApi\Api\Action\AbstractAction` $action )`
`abstract protected` | # `makeRequest( $url, $query, $file )`
`protected` | # `checkCode( $code )`
`protected` | # `detectFileMimeType( $file )`
`protected` | # `encodeFormData( $boundary, $name, $value, $filename = null, $headers = array( ) )`
`protected` | # `prepareFileContent( $filename )`
`protected` | # `renderQueryByBody( $query, $body )`
`protected string` | # `prepareRequestUrl( `SMSApi\Proxy\Uri` $uri )` #### Parameters $uri #### Returns string
`protected string` | # `prepareRequestBody( $file )` #### Parameters $file #### Returns string
`protected array` | # `prepareRequestHeaders( $file )` #### Parameters $file #### Returns array

Properties summary
`protected` | $protocol | # ``
`protected` | $host | # ``
`protected` | $port | # ``
`protected string` | $boundary | # `'**RGRG87VFSGF86796GSD**'`
`protected string` | $method | # `"POST"`
`protected integer` | $timeout | # `5`
`protected integer` | $maxRedirects | # `1`