AbstractHandler
in package
implements
HandlerInterface
AbstractYes
HTTP client handler interface
Tags
Table of Contents
Interfaces
- HandlerInterface
- HTTP client handler interface
Properties
- $httpVersion : string
- HTTP version
- $resource : mixed
- Client resource object
- $uri : string|null
- URI string
Methods
- disconnect() : void
- Close the handler connection
- getHttpVersion() : string
- Get the URI string
- getResource() : mixed
- Get the resource
- getUri() : string|null
- Get the URI string
- getUriObject() : Uri
- Get the URI as an object
- hasResource() : bool
- Determine whether or not resource is available
- hasUri() : bool
- Determine whether or not there is a URI string
- reset() : AbstractHandler
- Method to reset the handler
- resource() : mixed
- Get the resource (alias method)
- send() : mixed
- Method to send the request
Properties
$httpVersion
HTTP version
protected
string
$httpVersion
= '1.1'
$resource
Client resource object
protected
mixed
$resource
= null
$uri
URI string
protected
string|null
$uri
= null
Methods
disconnect()
Close the handler connection
public
abstract disconnect() : void
getHttpVersion()
Get the URI string
public
getHttpVersion() : string
Return values
stringgetResource()
Get the resource
public
getResource() : mixed
getUri()
Get the URI string
public
getUri() : string|null
Return values
string|nullgetUriObject()
Get the URI as an object
public
getUriObject() : Uri
Return values
UrihasResource()
Determine whether or not resource is available
public
hasResource() : bool
Return values
boolhasUri()
Determine whether or not there is a URI string
public
hasUri() : bool
Return values
boolreset()
Method to reset the handler
public
abstract reset() : AbstractHandler
Return values
AbstractHandlerresource()
Get the resource (alias method)
public
resource() : mixed
send()
Method to send the request
public
abstract send() : mixed