Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct () | |
applyOptions (RequestInterface $request, array $options=array(), $flags=self::OPTIONS_NONE) | |
cloneRequestWithMethod (RequestInterface $request, $method) | |
create ($method, $url, $headers=null, $body=null, array $options=array()) | |
fromMessage ($message) | |
fromParts ( $method, array $urlParts, $headers=null, $body=null, $protocol='HTTP', $protocolVersion='1.1') | |
Static Public Member Functions | |
static | getInstance () |
Protected Member Functions | |
visit_allow_redirects (RequestInterface $request, $value, $flags) | |
visit_auth (RequestInterface $request, $value, $flags) | |
visit_body (RequestInterface $request, $value, $flags) | |
visit_cert (RequestInterface $request, $value, $flags) | |
visit_connect_timeout (RequestInterface $request, $value, $flags) | |
visit_cookies (RequestInterface $request, $value, $flags) | |
visit_debug (RequestInterface $request, $value, $flags) | |
visit_events (RequestInterface $request, $value, $flags) | |
visit_exceptions (RequestInterface $request, $value, $flags) | |
visit_headers (RequestInterface $request, $value, $flags) | |
visit_params (RequestInterface $request, $value, $flags) | |
visit_plugins (RequestInterface $request, $value, $flags) | |
visit_proxy (RequestInterface $request, $value, $flags) | |
visit_query (RequestInterface $request, $value, $flags) | |
visit_save_to (RequestInterface $request, $value, $flags) | |
visit_ssl_key (RequestInterface $request, $value, $flags) | |
visit_timeout (RequestInterface $request, $value, $flags) | |
visit_verify (RequestInterface $request, $value, $flags) | |
Protected Attributes | |
$entityEnclosingRequestClass = 'Guzzle\\Http\\Message\\EntityEnclosingRequest' | |
$methods | |
$requestClass = 'Guzzle\\Http\\Message\\Request' | |
Static Protected Attributes | |
static | $instance |
Additional Inherited Members | |
![]() | |
const | OPTIONS_AS_DEFAULTS = 1 |
const | OPTIONS_NONE = 0 |
Default HTTP request factory used to create the default {
Definition at line 14 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
Guzzle\Http\Message\RequestFactory::__construct | ( | ) |
Definition at line 53 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
Guzzle\Http\Message\RequestFactory::applyOptions | ( | RequestInterface | $request, |
array | $options = array() , |
||
$flags = self::OPTIONS_NONE |
|||
) |
Apply an associative array of options to the request
RequestInterface | $request | Request to update |
array | $options | Options to use with the request. Available options are: "headers": Associative array of headers "query": Associative array of query string values to add to the request "body": Body of a request, including an EntityBody, string, or array when sending POST requests. "auth": Array of HTTP authentication parameters to use with the request. The array must contain the username in index [0], the password in index [2], and can optionally contain the authentication type in index [3]. The authentication types are: "Basic", "Digest", "NTLM", "Any" (defaults to "Basic"). "cookies": Associative array of cookies "allow_redirects": Set to false to disable redirects "save_to": String, fopen resource, or EntityBody object used to store the body of the response "events": Associative array mapping event names to a closure or array of (priority, closure) "plugins": Array of plugins to add to the request "exceptions": Set to false to disable throwing exceptions on an HTTP level error (e.g. 404, 500, etc) "params": Set custom request data parameters on a request. (Note: these are not query string parameters) "timeout": Float describing the timeout of the request in seconds "connect_timeout": Float describing the number of seconds to wait while trying to connect. Use 0 to wait indefinitely. "verify": Set to true to enable SSL cert validation (the default), false to disable, or supply the path to a CA bundle to enable verification using a custom certificate. "cert": Set to a string to specify the path to a file containing a PEM formatted certificate. If a password is required, then set an array containing the path to the PEM file followed by the the password required for the certificate. "ssl_key": Specify the path to a file containing a private SSL key in PEM format. If a password is required, then set an array containing the path to the SSL key followed by the password required for the certificate. "proxy": Specify an HTTP proxy (e.g. "http://username:password@192.168.16.1:10") "debug": Set to true to display all data sent over the wire |
int | $flags | Bitwise flags to apply when applying the options to the request. Defaults to no special options. 1 (OPTIONS_AS_DEFAULTS): When specified, options will only update a request when the value does not already exist on the request. This is only supported by "query" and "headers". Other bitwise options may be added in the future. |
Implements Guzzle\Http\Message\RequestFactoryInterface.
Definition at line 170 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
Referenced by Guzzle\Http\Message\RequestFactory\create().
Guzzle\Http\Message\RequestFactory::cloneRequestWithMethod | ( | RequestInterface | $request, |
$method | |||
) |
Clone a request while changing the method. Emulates the behavior of {
RequestInterface | $request | Request to clone |
string | $method | Method to set |
Definition at line 147 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestFactory\create(), Guzzle\Http\Message\RequestInterface\getClient(), Guzzle\Http\Message\RequestInterface\getCurlOptions(), Guzzle\Common\HasDispatcherInterface\getEventDispatcher(), Guzzle\Http\Message\MessageInterface\getHeaders(), Guzzle\Http\Message\MessageInterface\getParams(), and Guzzle\Http\Message\RequestInterface\getUrl().
Guzzle\Http\Message\RequestFactory::create | ( | $method, | |
$url, | |||
$headers = null , |
|||
$body = null , |
|||
array | $options = array() |
||
) |
Create a new request based on the HTTP method
string | $method | HTTP method (GET, POST, PUT, PATCH, HEAD, DELETE, ...) |
string | Url | $url | HTTP URL to connect to |
array | Collection | $headers | HTTP headers |
string | resource | array | EntityBodyInterface | $body | Body to send in the request |
array | $options | Array of options to apply to the request |
Implements Guzzle\Http\Message\RequestFactoryInterface.
Definition at line 92 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestFactory\applyOptions().
Referenced by Guzzle\Http\Message\RequestFactory\cloneRequestWithMethod(), and Guzzle\Http\Message\RequestFactory\fromParts().
Guzzle\Http\Message\RequestFactory::fromMessage | ( | $message | ) |
Create a new request based on an HTTP message
string | $message | HTTP message as a string |
Implements Guzzle\Http\Message\RequestFactoryInterface.
Definition at line 58 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestFactory\fromParts(), and Guzzle\Parser\ParserRegistry\getInstance().
Guzzle\Http\Message\RequestFactory::fromParts | ( | $method, | |
array | $urlParts, | ||
$headers = null , |
|||
$body = null , |
|||
$protocol = 'HTTP' , |
|||
$protocolVersion = '1.1' |
|||
) |
Create a request from URL parts as returned from parse_url()
string | $method | HTTP method (GET, POST, PUT, HEAD, DELETE, etc) |
array | $urlParts | URL parts containing the same keys as parse_url()
|
array | Collection | $headers | HTTP headers |
string | resource | array | EntityBodyInterface | $body | Body to send in the request |
string | $protocol | Protocol (HTTP, SPYDY, etc) |
string | $protocolVersion | 1.0, 1.1, etc |
Implements Guzzle\Http\Message\RequestFactoryInterface.
Definition at line 80 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Url\buildUrl(), and Guzzle\Http\Message\RequestFactory\create().
Referenced by Guzzle\Http\Message\RequestFactory\fromMessage().
|
static |
Get a cached instance of the default request factory
Definition at line 42 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
Referenced by Guzzle\Http\Client\__construct(), Guzzle\Http\RedirectPlugin\createRedirectRequest(), Guzzle\Tests\Plugin\Backoff\BackoffLoggerTest\getMocks(), Guzzle\Tests\Http\Server\getReceivedRequests(), Guzzle\Tests\Plugin\Oauth\OauthPluginTest\getRequest(), Guzzle\Tests\Http\Curl\CurlHandleTest\testAddsCustomCurlOptions(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testAddsPostFieldsAndSetsContentLength(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testAddsPostFilesAndSetsContentType(), Guzzle\Tests\Plugin\Async\AsyncPluginTest\testAddsTimesOutAfterSending(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testAllowsContentDispositionFieldsInPostUploadsWhenSettingInBulk(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testAllowsContentTypeInPostUploads(), Guzzle\Tests\Http\Curl\CurlHandleTest\testAllowsWireTransferInfoToBeEnabled(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testBugPathIncorrectlyHandled(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCachesSingletonInstance(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCanAddBasicAuth(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCanAddDigestAuth(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCanAddQueryString(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testCanSendMultipleRequestsUsingASingleRequestObject(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCanSetDefaultHeadersOptions(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCanSetDefaultQueryString(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testClonesRequestsWithMethodWithClient(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testClonesRequestsWithMethodWithClientWithEntityEnclosingChange(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testClonesRequestsWithMethodWithoutClient(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesBodyWithoutZeroString(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesFromMessage(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesFromParts(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesHeadAndDeleteRequests(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesHttpMessagesWithBodiesAndNormalizesLineEndings(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesNewGetRequests(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesNewPostRequestWithFields(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesNewPutRequestWithBody(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesNewTraceRequest(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesOptionsRequests(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesProperTransferEncodingRequests(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testCreatesPutRequests(), Guzzle\Tests\Http\Curl\CurlHandleTest\testCurlConfigurationOptionsAreSet(), Guzzle\Tests\Http\Curl\CurlMultiTest\testCurlErrorsAreCaught(), Guzzle\Tests\Plugin\Async\AsyncPluginTest\testEnablesProgressCallbacks(), Guzzle\Tests\Http\Curl\CurlHandleTest\testEnsuresRequestsHaveResponsesWhenUpdatingFromTransfer(), Guzzle\Tests\Service\Command\ClosureCommandTest\testExecutesClosure(), Guzzle\Tests\Http\Curl\CurlHandleTest\testFactoryUsesSpecifiedProtocol(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testGuessesContentTypeOfPostUpload(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testHandlesChunkedTransferEncoding(), Guzzle\Tests\Plugin\Async\AsyncPluginTest\testMasksCurlExceptions(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testPostRequestsUseApplicationXwwwForUrlEncodedForArrays(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testPostRequestsUseMultipartFormDataWithFiles(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testProcessMethodAddsContentType(), Guzzle\Tests\Http\Message\HttpRequestFactoryTest\testProperlyDealsWithDuplicateHeaders(), Guzzle\Tests\Plugin\Md5\Md5ValidatorPluginTest\testProperlyValidatesWhenUsingContentEncoding(), Guzzle\Tests\Plugin\Cache\DefaultCacheStorageTest\testPurgeRemovesAllMethodCaches(), Guzzle\Tests\Http\Curl\CurlMultiTest\testRemovesQueuedRequests(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testRequestBodyAddsContentLength(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testRequestBodyContainsPostFiles(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testRequestBodyDoesNotUseContentLengthWhenChunked(), Guzzle\Tests\Http\Message\RequestTest\testRequestCanBeSentUsingCurl(), Guzzle\Tests\Http\Message\RequestTest\testRequestCanHaveManuallySetResponseBody(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testRequestHasMutableBody(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testRequestIncludesBodyInMessage(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testRequestIncludesPostBodyInMessageOnlyWhenNoPostFiles(), Guzzle\Tests\Http\Message\RequestTest\testRequestsCanBeConvertedToRawMessageStrings(), Guzzle\Tests\Http\Message\RequestTest\testRequestStringsIncludeAuth(), Guzzle\Tests\Plugin\Cache\DefaultRevalidationTest\testRevalidatesResponsesAgainstOriginServer(), Guzzle\Tests\Http\Curl\CurlHandleTest\testSendsPostRequestsWithFields(), Guzzle\Tests\Http\Curl\CurlHandleTest\testSendsPostRequestsWithFiles(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testSetPostFields(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testSetPostFiles(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testSetPostFilesThrowsExceptionWhenFileIsNotFound(), Guzzle\Tests\Plugin\Md5\Md5ValidatorPluginTest\testSkipsWhenContentLengthIsTooLarge(), Guzzle\Tests\Http\Curl\CurlHandleTest\testStoresStdErr(), Guzzle\Tests\Plugin\Md5\Md5ValidatorPluginTest\testThrowsExceptionOnInvalidMd5(), Guzzle\Tests\Http\Message\EntityEnclosingRequestTest\testThrowsExceptionWhenNonStringsAreAddedToPost(), and Guzzle\Tests\Plugin\Md5\Md5ValidatorPluginTest\testValidatesMd5().
|
protected |
Definition at line 208 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\RedirectPlugin\DISABLE, and Guzzle\Http\Message\MessageInterface\getParams().
|
protected |
Definition at line 215 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\setAuth().
|
protected |
Definition at line 199 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
|
protected |
Definition at line 349 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\getCurlOptions().
|
protected |
Definition at line 312 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\getCurlOptions().
|
protected |
Definition at line 239 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\addCookie().
|
protected |
Definition at line 321 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\getCurlOptions().
|
protected |
Definition at line 250 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Common\HasDispatcherInterface\getEventDispatcher().
|
protected |
Definition at line 276 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Common\HasDispatcherInterface\getEventDispatcher().
|
protected |
|
protected |
Definition at line 294 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\MessageInterface\getParams().
|
protected |
Definition at line 265 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Common\HasDispatcherInterface\addSubscriber().
|
protected |
Definition at line 344 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\getCurlOptions().
|
protected |
Definition at line 224 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\getQuery().
|
protected |
Definition at line 289 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\setResponseBody().
|
protected |
Definition at line 359 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\getCurlOptions().
|
protected |
Definition at line 303 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\getCurlOptions().
|
protected |
Definition at line 328 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
References Guzzle\Http\Message\RequestInterface\getCurlOptions().
|
protected |
Class to instantiate for requests with a body
Definition at line 35 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
|
staticprotected |
Singleton instance of the default request factory
Definition at line 18 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
|
protected |
Definition at line 23 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.
|
protected |
Class to instantiate for requests with no body
Definition at line 29 of file lib/vendor/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php.