Mutable objects that represents an HTTP(S) query. More...
Public Member Functions | |
postWithData (string $data) | |
Make this a POST request with given data. | |
queryParameters (array $params) | |
queryHeaders (array $headers) | |
timeout (float $timeout) | |
attachProcessingInstructions ( $data) | |
Attach arbitrary data that is necessary to process the results. | |
getTimeout () | |
getUrl () | |
getMethod () | |
getQueryParameters () | |
getBody () | |
getHeaders () | |
getProcessingInstructions () | |
Get previously attached result processing instructions. | |
Static Public Member Functions | |
static | factory (string $url) |
Mutable objects that represents an HTTP(S) query.
NB: Too lazy to make TranslationQueryFactory to make this class immutable.
Definition at line 13 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::attachProcessingInstructions | ( | $data | ) |
Attach arbitrary data that is necessary to process the results.
mixed | $data |
Definition at line 56 of file TranslationQuery.php.
|
static |
Definition at line 23 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::getBody | ( | ) |
Definition at line 77 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::getHeaders | ( | ) |
Definition at line 81 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::getMethod | ( | ) |
Definition at line 69 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::getProcessingInstructions | ( | ) |
Get previously attached result processing instructions.
Definition at line 90 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::getQueryParameters | ( | ) |
Definition at line 73 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::getTimeout | ( | ) |
Definition at line 61 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::getUrl | ( | ) |
Definition at line 65 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::postWithData | ( | string | $data | ) |
Make this a POST request with given data.
Definition at line 30 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::queryHeaders | ( | array | $headers | ) |
Definition at line 41 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::queryParameters | ( | array | $params | ) |
Definition at line 36 of file TranslationQuery.php.
MediaWiki\Extension\Translate\WebService\TranslationQuery::timeout | ( | float | $timeout | ) |
Definition at line 46 of file TranslationQuery.php.