MediaWiki
1.33.1
|
Public Member Functions | |
setRespHeaders ( $name, $value) | |
Public Member Functions inherited from GuzzleHttpRequest | |
__construct ( $url, array $options=[], $caller=__METHOD__, Profiler $profiler=null) | |
execute () | |
setCallback ( $callback) | |
Set a read callback to accept data read from the HTTP request. More... | |
Public Member Functions inherited from MWHttpRequest | |
canFollowRedirects () | |
Returns true if the backend can follow redirects. More... | |
getContent () | |
Get the body, or content, of the response to the request. More... | |
getCookieJar () | |
Returns the cookie jar in use. More... | |
getFinalUrl () | |
Returns the final URL after all redirections. More... | |
getResponseHeader ( $header) | |
Returns the value of the given response header. More... | |
getResponseHeaders () | |
Returns an associative array of response headers after the request has been executed. More... | |
getStatus () | |
Get the integer value of the HTTP status code (e.g. More... | |
isRedirect () | |
Returns true if the last status code was a redirect. More... | |
read ( $fh, $content) | |
A generic callback to read the body of the response from a remote server. More... | |
setCookie ( $name, $value, array $attr=[]) | |
Sets a cookie. More... | |
setCookieJar (CookieJar $jar) | |
Tells the MWHttpRequest object to use this pre-loaded CookieJar. More... | |
setData (array $args) | |
Set the parameters of the request. More... | |
setHeader ( $name, $value) | |
Set an arbitrary header. More... | |
setLogger (LoggerInterface $logger) | |
setOriginalRequest ( $originalRequest) | |
Set information about the original request. More... | |
setUserAgent ( $UA) | |
Set the user agent. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from MWHttpRequest | |
static | canMakeRequests () |
Simple function to test if we can make any sort of requests at all, using cURL or fopen() More... | |
static | factory ( $url, array $options=null, $caller=__METHOD__) |
Generate a new request object Deprecated: More... | |
Public Attributes inherited from GuzzleHttpRequest | |
const | SUPPORTS_FILE_POSTS = true |
Public Attributes inherited from MWHttpRequest | |
const | SUPPORTS_FILE_POSTS = false |
Protected Member Functions inherited from GuzzleHttpRequest | |
doSetCallback ( $callback) | |
Worker function for setting callbacks. More... | |
parseHeader () | |
Guzzle provides headers as an array. More... | |
prepare () | |
usingCurl () | |
Protected Member Functions inherited from MWHttpRequest | |
getHeaderList () | |
Get an array of the headers. More... | |
parseCookies () | |
Parse the cookies in the response headers and store them in the cookie jar. More... | |
proxySetup () | |
Take care of setting up the proxy (do nothing if "noProxy" is set) More... | |
setStatus () | |
Sets HTTPRequest status member to a fatal value with the error message if the returned integer value of the status code was not successful (1-299) or a redirect (300-399). More... | |
Protected Attributes inherited from GuzzleHttpRequest | |
$guzzleOptions = [ 'http_errors' => false ] | |
$handler = null | |
$sink = null | |
Protected Attributes inherited from MWHttpRequest | |
$caInfo = null | |
callable | $callback |
$connectTimeout | |
$content | |
CookieJar | $cookieJar |
$followRedirects = false | |
$headerList = [] | |
$headersOnly = null | |
LoggerInterface | $logger |
$maxRedirects = 5 | |
$method = "GET" | |
$noProxy = false | |
$parsedUrl | |
$postData = null | |
string | $profileName |
Profiler | $profiler |
$proxy = null | |
$reqHeaders = [] | |
$respHeaders = [] | |
$respStatus = "200 Ok" | |
$respVersion = "0.9" | |
$sslVerifyCert = true | |
$sslVerifyHost = true | |
StatusValue | $status |
int string | $timeout = 'default' |
$url | |
Definition at line 540 of file HttpTest.php.
GuzzleHttpRequestTester::setRespHeaders | ( | $name, | |
$value | |||
) |
Definition at line 541 of file HttpTest.php.