Skip to content
Snippets Groups Projects
Select Git revision
  • c3fb21d0d4f3caff469cba22be025fb7f44ff983
  • main default protected
  • devel
  • 1.1.0
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
9 results

phpcs

Blame
  • HttpClient.php 1.40 KiB
    <?php
    
    namespace WPDesk\HttpClient;
    
    
    interface HttpClient
    {
        /**
         * @param string $url
         * @param string $body
         * @param array $headers
         * @param int $timeOut
         * @throw HttpClientRequestException
         * @return HttpClientResponse
         */
        public function put($url, $body, array $headers, $timeOut);
    
        /**
         * @param string $url
         * @param string $body
         * @param array $headers
         * @param int $timeOut
         * @throw HttpClientRequestException
         * @return HttpClientResponse
         */
        public function get($url, $body, array $headers, $timeOut);
    
        /**
         * @param string $url
         * @param string $body
         * @param array $headers
         * @param int $timeOut
         * @throw HttpClientRequestException
         * @return HttpClientResponse
         */
        public function post($url, $body, array $headers, $timeOut);
    
        /**
         * @param string $url
         * @param string $body
         * @param array $headers
         * @param int $timeOut
         * @throw HttpClientRequestException
         * @return HttpClientResponse
         */
        public function delete($url, $body, array $headers, $timeOut);
    
        /**
         * @param string $url
         * @param string $method
         * @param string $body
         * @param array $headers
         * @param int $timeOut
         * @throw HttpClientRequestException
         * @return HttpClientResponse
         */
        public function send($url, $method, $body, array $headers, $timeOut);
    }