Skip to content
Snippets Groups Projects
Select Git revision
  • 2f081692bef70dae62affad84c9a299d50d3a676
  • master default protected
  • fix/body-raw
  • devel
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0
10 results

HttpClient.php

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);
    }