LingotekHttpInterface.php in Lingotek Translation 3.7.x
Same filename and directory in other branches
- 8 src/Remote/LingotekHttpInterface.php
- 8.2 src/Remote/LingotekHttpInterface.php
- 4.0.x src/Remote/LingotekHttpInterface.php
- 3.0.x src/Remote/LingotekHttpInterface.php
- 3.1.x src/Remote/LingotekHttpInterface.php
- 3.2.x src/Remote/LingotekHttpInterface.php
- 3.3.x src/Remote/LingotekHttpInterface.php
- 3.4.x src/Remote/LingotekHttpInterface.php
- 3.5.x src/Remote/LingotekHttpInterface.php
- 3.6.x src/Remote/LingotekHttpInterface.php
- 3.8.x src/Remote/LingotekHttpInterface.php
Namespace
Drupal\lingotek\RemoteFile
src/Remote/LingotekHttpInterface.phpView source
<?php
namespace Drupal\lingotek\Remote;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
/**
* Lingotek HTTP interface.
*/
interface LingotekHttpInterface extends ContainerInjectionInterface {
/**
* Send a GET request.
*
* @param string|\Psr\Http\Message\UriInterface $path
* URI object or string.
* @param array $args
* Request argument to add via query string.
*
* @return \Psr\Http\Message\ResponseInterface
* A response.
*/
public function get($path, $args = []);
/**
* Send a POST request.
*
* @param string|\Psr\Http\Message\UriInterface $path
* URI object or string.
* @param array $args
* Request arguments to the POST request.
* @param bool $use_multipart
* If TRUE, use multipart post arguments. If FALSE, uses form parameters.
*
* @return \Psr\Http\Message\ResponseInterface
* A response.
*/
public function post($path, $args = [], $use_multipart = FALSE);
/**
* Send a DELETE request.
*
* @param string|\Psr\Http\Message\UriInterface $path
* URI object or string.
* @param array $args
* Request argument to add via query string.
*
* @return \Psr\Http\Message\ResponseInterface
* A response.
*/
public function delete($path, $args = []);
/**
* Send a PATCH request.
*
* @param string|\Psr\Http\Message\UriInterface $path
* URI object or string.
* @param array $args
* Request arguments to the PATCH request.
* @param bool $use_multipart
* If TRUE, use multipart post arguments. If FALSE, uses form parameters.
*
* @return \Psr\Http\Message\ResponseInterface
* A response.
*/
public function patch($path, $args = [], $use_multipart = FALSE);
/**
* Gets the current configured token.
*
* @return string
* The token.
*/
public function getCurrentToken();
}
Interfaces
Name | Description |
---|---|
LingotekHttpInterface | Lingotek HTTP interface. |