You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
569 B
21 lines
569 B
<?php
|
|
|
|
namespace Tansilu\HfPayLib\http;
|
|
|
|
interface IHttpClient
|
|
{
|
|
function request(string $method, string $uri, ?array $query = [], ?array $body = [], string $format = 'json'): Response;
|
|
|
|
function get(string $uri, ?array $data = []): Response;
|
|
|
|
function post(string $uri, ?array $data = []): Response;
|
|
|
|
function patch(string $uri, ?array $data = []): Response;
|
|
|
|
function put(string $uri, ?array $data = []): Response;
|
|
|
|
function delete(string $uri, ?array $data = []): Response;
|
|
|
|
function postJson(string $uri, ?array $data = []): Response;
|
|
|
|
} |