Open Journal Systems
3.3.0
|
Data Fields | |
const | CONNECT = 'CONNECT' |
const | DELETE = 'DELETE' |
const | GET = 'GET' |
const | HEAD = 'HEAD' |
const | OPTIONS = 'OPTIONS' |
const | PATCH = 'PATCH' |
const | POST = 'POST' |
const | PUT = 'PUT' |
const | STATE_COMPLETE = 'complete' |
const | STATE_ERROR = 'error' |
const | STATE_NEW = 'new' |
const | STATE_TRANSFER = 'transfer' |
const | TRACE = 'TRACE' |
Additional Inherited Members | |
![]() | |
static | getAllEvents () |
Generic HTTP request interface
Definition at line 16 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
Guzzle\Http\Message\RequestInterface::__toString | ( | ) |
Implemented in Guzzle\Http\Message\Request, and Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\RequestInterface::addCookie | ( | $name, | |
$value | |||
) |
Add a Cookie value by name to the Cookie header
string | $name | Name of the cookie to add |
string | $value | Value to set |
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Http\Message\RequestFactory\visit_cookies().
Guzzle\Http\Message\RequestInterface::getClient | ( | ) |
Get the client used to transport the request
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Http\Message\RequestFactory\cloneRequestWithMethod().
Guzzle\Http\Message\RequestInterface::getCookie | ( | $name | ) |
Get a cookie value by name
string | $name | Cookie to retrieve |
Implemented in Guzzle\Http\Message\Request.
Guzzle\Http\Message\RequestInterface::getCookies | ( | ) |
Guzzle\Http\Message\RequestInterface::getCurlOptions | ( | ) |
Get the cURL options that will be applied when the cURL handle is created
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Stream\PhpStreamRequestFactory\addProxyOptions(), Guzzle\Stream\PhpStreamRequestFactory\addSslOptions(), Guzzle\Http\Message\RequestFactory\cloneRequestWithMethod(), Guzzle\Http\Curl\CurlHandle\factory(), Guzzle\Http\Client\prepareRequest(), Guzzle\Http\Message\RequestFactory\visit_cert(), Guzzle\Http\Message\RequestFactory\visit_connect_timeout(), Guzzle\Http\Message\RequestFactory\visit_debug(), Guzzle\Http\Message\RequestFactory\visit_proxy(), Guzzle\Http\Message\RequestFactory\visit_ssl_key(), Guzzle\Http\Message\RequestFactory\visit_timeout(), and Guzzle\Http\Message\RequestFactory\visit_verify().
Guzzle\Http\Message\RequestInterface::getHost | ( | ) |
Get the host of the request
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Log\MessageFormatter\format(), and Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar\getMatchingCookies().
Guzzle\Http\Message\RequestInterface::getMethod | ( | ) |
Get the HTTP method of the request
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Stream\PhpStreamRequestFactory\addDefaultContextOptions(), Guzzle\Plugin\Cache\DefaultCanCacheStrategy\canCacheRequest(), Guzzle\Http\Curl\CurlHandle\factory(), Guzzle\Log\MessageFormatter\format(), Guzzle\Plugin\Cache\DefaultCacheStorage\getCacheKey(), Guzzle\Plugin\Oauth\OauthPlugin\getStringToSign(), and Guzzle\Plugin\Cache\DefaultRevalidation\shouldRevalidate().
Guzzle\Http\Message\RequestInterface::getPassword | ( | ) |
Get the password to pass in the URL if set
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Stream\PhpStreamRequestFactory\setUrl().
Guzzle\Http\Message\RequestInterface::getPath | ( | ) |
Get the path of the request (e.g. '/', '/index.html')
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar\getMatchingCookies().
Guzzle\Http\Message\RequestInterface::getPort | ( | ) |
Get the port that the request will be sent on if it has been set
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Http\Curl\CurlHandle\factory(), Guzzle\Log\MessageFormatter\format(), and Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar\getMatchingCookies().
Guzzle\Http\Message\RequestInterface::getProtocolVersion | ( | ) |
Get the HTTP protocol version of the request
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Stream\PhpStreamRequestFactory\addDefaultContextOptions(), Guzzle\Plugin\Cache\CachePlugin\addResponseHeaders(), Guzzle\Http\Curl\CurlHandle\factory(), and Guzzle\Log\MessageFormatter\format().
Guzzle\Http\Message\RequestInterface::getQuery | ( | ) |
Get the collection of key value pairs that will be used as the query string in the request
Referenced by Guzzle\Plugin\Oauth\OauthPlugin\getParamsToSign(), Guzzle\Plugin\Oauth\OauthPlugin\getStringToSign(), Guzzle\Service\Command\LocationVisitor\Request\QueryVisitor\visit(), and Guzzle\Http\Message\RequestFactory\visit_query().
Guzzle\Http\Message\RequestInterface::getResource | ( | ) |
Get the resource part of the the request, including the path, query string, and fragment
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Log\MessageFormatter\format().
Guzzle\Http\Message\RequestInterface::getResponse | ( | ) |
Get the previously received {
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Plugin\History\HistoryPlugin\add(), and Guzzle\Http\Curl\CurlHandle\updateRequestFromTransfer().
Guzzle\Http\Message\RequestInterface::getResponseBody | ( | ) |
Get the EntityBody that will hold the resulting response message's entity body. This response body will only be used for successful responses. Intermediate responses (e.g. redirects) will not use the targeted response body.
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Http\RedirectPlugin\createRedirectRequest().
Guzzle\Http\Message\RequestInterface::getScheme | ( | ) |
Get the URI scheme of the request (http, https, ftp, etc)
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Plugin\Cookie\CookieJar\ArrayCookieJar\getMatchingCookies().
Guzzle\Http\Message\RequestInterface::getState | ( | ) |
Get the state of the request. One of 'complete', 'transfer', 'new', 'error'
Implemented in Guzzle\Http\Message\Request.
Guzzle\Http\Message\RequestInterface::getUrl | ( | $asObject = false | ) |
Get the full URL of the request (e.g. 'http://www.guzzle-project.com/')
bool | $asObject | Set to TRUE to retrieve the URL as a clone of the URL object owned by the request. |
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Plugin\Cache\DefaultCacheStorage\cache(), Guzzle\Http\Message\RequestFactory\cloneRequestWithMethod(), Guzzle\Http\Curl\CurlHandle\factory(), Guzzle\Log\MessageFormatter\format(), Guzzle\Plugin\Oauth\OauthPlugin\generateNonce(), Guzzle\Plugin\Cache\DefaultCacheStorage\getCacheKey(), Guzzle\Plugin\Oauth\OauthPlugin\getStringToSign(), and Guzzle\Stream\PhpStreamRequestFactory\setUrl().
Guzzle\Http\Message\RequestInterface::getUsername | ( | ) |
Get the username to pass in the URL if set
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Stream\PhpStreamRequestFactory\setUrl().
Guzzle\Http\Message\RequestInterface::removeCookie | ( | $name | ) |
Remove a specific cookie value by name
string | $name | Cookie to remove by name |
Implemented in Guzzle\Http\Message\Request.
Guzzle\Http\Message\RequestInterface::send | ( | ) |
Send the request
RequestException | on a request error |
Implemented in Guzzle\Http\Message\Request.
Guzzle\Http\Message\RequestInterface::setAuth | ( | $user, | |
$password = '' , |
|||
$scheme = 'Basic' |
|||
) |
Set HTTP authorization parameters
string | bool | $user | User name or false disable authentication |
string | $password | Password |
string | $scheme | Authentication scheme ('Basic', 'Digest', or a CURLAUTH_* constant (deprecated)) |
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Http\Message\RequestFactory\visit_auth().
Guzzle\Http\Message\RequestInterface::setClient | ( | ClientInterface | $client | ) |
Set the client used to transport the request
ClientInterface | $client |
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Http\Client\prepareRequest().
Guzzle\Http\Message\RequestInterface::setHost | ( | $host | ) |
Set the host of the request. Including a port in the host will modify the port of the request.
string | $host | Host to set (e.g. www.yahoo.com, www.yahoo.com:80) |
Implemented in Guzzle\Http\Message\Request.
Guzzle\Http\Message\RequestInterface::setPath | ( | $path | ) |
Set the path of the request (e.g. '/', '/index.html')
string | array | $path | Path to set or array of segments to implode |
Implemented in Guzzle\Http\Message\Request.
Guzzle\Http\Message\RequestInterface::setPort | ( | $port | ) |
Set the port that the request will be sent on
int | $port | Port number to set |
Implemented in Guzzle\Http\Message\Request.
Guzzle\Http\Message\RequestInterface::setProtocolVersion | ( | $protocol | ) |
Set the HTTP protocol version of the request (e.g. 1.1 or 1.0)
string | $protocol | HTTP protocol version to use with the request |
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Http\Curl\CurlHandle\updateRequestFromTransfer().
Guzzle\Http\Message\RequestInterface::setResponse | ( | Response | $response, |
$queued = false |
|||
) |
Manually set a response for the request.
This method is useful for specifying a mock response for the request or setting the response using a cache. Manually setting a response will bypass the actual sending of a request.
Response | $response | Response object to set |
bool | $queued | Set to TRUE to keep the request in a state of not having been sent, but queue the response for send() |
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Plugin\Mock\MockPlugin\dequeue(), and Guzzle\Plugin\Cache\DefaultRevalidation\handle200Response().
Guzzle\Http\Message\RequestInterface::setResponseBody | ( | $body | ) |
Set the EntityBody that will hold a successful response message's entity body.
This method should be invoked when you need to send the response's entity body somewhere other than the normal php://temp buffer. For example, you can send the entity body to a socket, file, or some other custom stream.
EntityBodyInterface | string | resource | $body | Response body object. Pass a string to attempt to store the response body in a local file. |
Implemented in Guzzle\Http\Message\Request.
Referenced by Guzzle\Http\RedirectPlugin\createRedirectRequest(), Guzzle\Service\Command\LocationVisitor\Request\ResponseBodyVisitor\visit(), and Guzzle\Http\Message\RequestFactory\visit_save_to().
Guzzle\Http\Message\RequestInterface::setScheme | ( | $scheme | ) |
Set the URI scheme of the request (http, https, ftp, etc)
string | $scheme | Scheme to set |
Implemented in Guzzle\Http\Message\Request.
Guzzle\Http\Message\RequestInterface::setState | ( | $state, | |
array | $context = array() |
||
) |
Set the state of the request
string | $state | State of the request ('complete', 'transfer', 'new', 'error') |
array | $context | Contextual information about the state change |
Implemented in Guzzle\Http\Message\Request, and Guzzle\Http\Message\EntityEnclosingRequest.
Referenced by Guzzle\Http\Curl\CurlMulti\beforeSend(), Guzzle\Plugin\Mock\MockPlugin\dequeue(), and Guzzle\Http\Curl\CurlMulti\processResponse().
Guzzle\Http\Message\RequestInterface::setUrl | ( | $url | ) |
Set the URL of the request
string | $url,|Url | Full URL to set including query string |
Implemented in Guzzle\Http\Message\Request.
Guzzle\Http\Message\RequestInterface::startResponse | ( | Response | $response | ) |
The start of a response has been received for a request and the request is still in progress
Implemented in Guzzle\Http\Message\Request.
const Guzzle\Http\Message\RequestInterface::CONNECT = 'CONNECT' |
Definition at line 28 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
const Guzzle\Http\Message\RequestInterface::DELETE = 'DELETE' |
Definition at line 26 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
const Guzzle\Http\Message\RequestInterface::GET = 'GET' |
Definition at line 23 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
Referenced by Guzzle\Plugin\Cache\DefaultCanCacheStrategy\canCacheRequest(), and Guzzle\Plugin\Cache\DefaultRevalidation\shouldRevalidate().
const Guzzle\Http\Message\RequestInterface::HEAD = 'HEAD' |
Definition at line 27 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
Referenced by Guzzle\Plugin\Cache\DefaultCanCacheStrategy\canCacheRequest().
const Guzzle\Http\Message\RequestInterface::OPTIONS = 'OPTIONS' |
Definition at line 29 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
const Guzzle\Http\Message\RequestInterface::PATCH = 'PATCH' |
Definition at line 31 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
const Guzzle\Http\Message\RequestInterface::POST = 'POST' |
Definition at line 25 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
const Guzzle\Http\Message\RequestInterface::PUT = 'PUT' |
Definition at line 24 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
const Guzzle\Http\Message\RequestInterface::STATE_COMPLETE = 'complete' |
Definition at line 19 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
Referenced by Guzzle\Http\Curl\CurlMulti\beforeSend(), Guzzle\Http\Curl\CurlMulti\processResponse(), Guzzle\Http\Message\Request\processResponse(), Guzzle\Http\Message\Request\setState(), Guzzle\Tests\Plugin\Async\AsyncPluginTest\testMasksCurlExceptions(), and Guzzle\Tests\Http\Message\RequestTest\testRequestThrowsExceptionWhenSetToCompleteWithNoResponse().
const Guzzle\Http\Message\RequestInterface::STATE_ERROR = 'error' |
Definition at line 21 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
Referenced by Guzzle\Plugin\Mock\MockPlugin\dequeue(), Guzzle\Http\Curl\CurlMulti\processResponse(), and Guzzle\Http\Message\Request\setState().
const Guzzle\Http\Message\RequestInterface::STATE_NEW = 'new' |
Definition at line 18 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
Referenced by Guzzle\Http\Message\Request\__clone(), Guzzle\Service\Client\prepareCommand(), Guzzle\Http\Message\Request\setState(), Guzzle\Tests\Http\Message\RequestTest\testClonedRequestsUseNewInternalState(), and Guzzle\Tests\Http\Message\RequestTest\testRequestHasState().
const Guzzle\Http\Message\RequestInterface::STATE_TRANSFER = 'transfer' |
Definition at line 20 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.
Referenced by Guzzle\Http\Curl\CurlMulti\beforeSend(), Guzzle\Plugin\Backoff\BackoffPlugin\onRequestSent(), Guzzle\Http\Curl\CurlMulti\processResponse(), Guzzle\Http\Message\Request\setState(), Guzzle\Http\Message\Request\startResponse(), and Guzzle\Tests\Http\Message\RequestTest\testRequestHasState().
const Guzzle\Http\Message\RequestInterface::TRACE = 'TRACE' |
Definition at line 30 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php.