Open Journal Systems
3.3.0
|
Public Member Functions | |
addPostFields ($fields) | |
addPostFile ($field, $filename=null, $contentType=null, $postname=null) | |
addPostFiles (array $files) | |
configureRedirects ($strict=false, $maxRedirects=5) | |
getBody () | |
getPostField ($field) | |
getPostFields () | |
getPostFile ($fieldName) | |
getPostFiles () | |
removePostField ($field) | |
removePostFile ($fieldName) | |
setBody ($body, $contentType=null) | |
setPostField ($key, $value) | |
![]() | |
__toString () | |
addCookie ($name, $value) | |
getClient () | |
getCookie ($name) | |
getCookies () | |
getCurlOptions () | |
getHost () | |
getMethod () | |
getPassword () | |
getPath () | |
getPort () | |
getProtocolVersion () | |
getQuery () | |
getResource () | |
getResponse () | |
getResponseBody () | |
getScheme () | |
getState () | |
getUrl ($asObject=false) | |
getUsername () | |
removeCookie ($name) | |
send () | |
setAuth ($user, $password='', $scheme='Basic') | |
setClient (ClientInterface $client) | |
setHost ($host) | |
setPath ($path) | |
setPort ($port) | |
setProtocolVersion ($protocol) | |
setResponse (Response $response, $queued=false) | |
setResponseBody ($body) | |
setScheme ($scheme) | |
setState ($state, array $context=array()) | |
setUrl ($url) | |
startResponse (Response $response) | |
![]() | |
addHeader ($header, $value) | |
addHeaders (array $headers) | |
getHeader ($header) | |
getHeaderLines () | |
getHeaders () | |
getParams () | |
getRawHeaders () | |
hasHeader ($header) | |
removeHeader ($header) | |
setHeader ($header, $value) | |
setHeaders (array $headers) | |
![]() | |
addSubscriber (EventSubscriberInterface $subscriber) | |
dispatch ($eventName, array $context=array()) | |
getEventDispatcher () | |
setEventDispatcher (EventDispatcherInterface $eventDispatcher) | |
Data Fields | |
const | MULTIPART = 'multipart/form-data' |
const | URL_ENCODED = 'application/x-www-form-urlencoded; charset=utf-8' |
![]() | |
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 () |
HTTP request that sends an entity-body in the request message (POST, PUT)
Definition at line 12 of file EntityEnclosingRequestInterface.php.
Guzzle\Http\Message\EntityEnclosingRequestInterface::addPostFields | ( | $fields | ) |
Add POST fields to use in the request
QueryString | array | $fields | POST fields |
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::addPostFile | ( | $field, | |
$filename = null , |
|||
$contentType = null , |
|||
$postname = null |
|||
) |
Add a POST file to the upload
string | $field | POST field to use (e.g. file). Used to reference content from the server. |
string | $filename | Full path to the file. Do not include the @ symbol. |
string | $contentType | Optional Content-Type to add to the Content-Disposition. Default behavior is to guess. Set to false to not specify. |
string | $postname | The name of the file, when posted. (e.g. rename the file) |
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::addPostFiles | ( | array | $files | ) |
Add POST files to use in the upload
array | $files | An array of POST fields => filenames where filename can be a string or PostFileInterface |
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::configureRedirects | ( | $strict = false , |
|
$maxRedirects = 5 |
|||
) |
Configure how redirects are handled for the request
bool | $strict | Set to true to follow strict RFC compliance when redirecting POST requests. Most browsers with follow a 301-302 redirect for a POST request with a GET request. This is the default behavior of Guzzle. Enable strict redirects to redirect these responses with a POST rather than a GET request. |
int | $maxRedirects | Specify the maximum number of allowed redirects. Set to 0 to disable redirects. |
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::getBody | ( | ) |
Get the body of the request if set
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Referenced by Guzzle\Http\RedirectPlugin\createRedirectRequest(), Guzzle\Plugin\Md5\CommandContentMd5Plugin\onCommandBeforeSend(), Guzzle\Plugin\Log\LogPlugin\onRequestBeforeSend(), and Guzzle\Plugin\Backoff\BackoffPlugin\onRequestPoll().
Guzzle\Http\Message\EntityEnclosingRequestInterface::getPostField | ( | $field | ) |
Get a POST field from the request
string | $field | Field to retrieve |
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::getPostFields | ( | ) |
Get the post fields that will be used in the request
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::getPostFile | ( | $fieldName | ) |
Get a POST file from the request
string | $fieldName | POST fields to retrieve |
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::getPostFiles | ( | ) |
Returns an associative array of POST field names to PostFileInterface objects
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::removePostField | ( | $field | ) |
Remove a POST field or file by name
string | $field | Name of the POST field or file to remove |
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::removePostFile | ( | $fieldName | ) |
Remove a POST file from the request
string | $fieldName | POST file field name to remove |
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::setBody | ( | $body, | |
$contentType = null |
|||
) |
Set the body of the request
string | resource | EntityBodyInterface | $body | Body to use in the entity body of the request |
string | $contentType | Content-Type to set. Leave null to use an existing Content-Type or to guess the Content-Type |
RequestException | if the protocol is < 1.1 and Content-Length can not be determined |
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
Guzzle\Http\Message\EntityEnclosingRequestInterface::setPostField | ( | $key, | |
$value | |||
) |
Set a POST field value
string | $key | Key to set |
string | $value | Value to set |
Implemented in Guzzle\Http\Message\EntityEnclosingRequest.
const Guzzle\Http\Message\EntityEnclosingRequestInterface::MULTIPART = 'multipart/form-data' |
Definition at line 15 of file EntityEnclosingRequestInterface.php.
const Guzzle\Http\Message\EntityEnclosingRequestInterface::URL_ENCODED = 'application/x-www-form-urlencoded; charset=utf-8' |
Definition at line 14 of file EntityEnclosingRequestInterface.php.