HttpInterface
in
HTTP interface
Tags
Table of Contents
Methods
- __toString() : string
- Render the request/response to string
- getRequest() : AbstractRequest
- Get the request
- getResponse() : AbstractResponse
- Get the response
- hasRequest() : bool
- Has request
- hasResponse() : bool
- Get the response
- render() : string
- Render the request/response to string
- send() : mixed
- Send the request/response
- setRequest() : HttpInterface
- Set the request
- setResponse() : HttpInterface
- Set the response
Methods
__toString()
Render the request/response to string
public
__toString() : string
Return values
stringgetRequest()
Get the request
public
getRequest() : AbstractRequest
Return values
AbstractRequestgetResponse()
Get the response
public
getResponse() : AbstractResponse
Return values
AbstractResponsehasRequest()
Has request
public
hasRequest() : bool
Return values
boolhasResponse()
Get the response
public
hasResponse() : bool
Return values
boolrender()
Render the request/response to string
public
render() : string
Return values
stringsend()
Send the request/response
public
send() : mixed
setRequest()
Set the request
public
setRequest(AbstractRequest $request) : HttpInterface
Parameters
- $request : AbstractRequest
Return values
HttpInterfacesetResponse()
Set the response
public
setResponse(AbstractResponse $response) : HttpInterface
Parameters
- $response : AbstractResponse