BaguettePHP/mastodon-api

View on GitHub
docs/class-GuzzleHttp.Client.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">

    <title>Class GuzzleHttp\Client | ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK</title>

    <link rel="stylesheet" href="resources/style.css?c2f33731c1948fbed7c333554678bfa68d4817da">

</head>

<body>
<div id="left">
    <div id="menu">
        <a href="index.html" title="Overview"><span>Overview</span></a>


        <div id="groups">
                <h3>Namespaces</h3>
            <ul>
                <li>
                    <a href="namespace-Baguette.html">
                        Baguette<span></span>
                    </a>

                        <ul>
                <li>
                    <a href="namespace-Baguette.Mastodon.html">
                        Mastodon<span></span>
                    </a>

                        <ul>
                <li class="main">
                    <a href="namespace-Baguette.Mastodon.Config.html">
                        Config                    </a>

                        </li>
                <li class="main">
                    <a href="namespace-Baguette.Mastodon.Entity.html">
                        Entity                    </a>

                        </li>
                <li class="main">
                    <a href="namespace-Baguette.Mastodon.Grant.html">
                        Grant                    </a>

                        </li>
                <li class="main">
                    <a href="namespace-Baguette.Mastodon.Service.html">
                        Service                    </a>

                        </li>
                            </ul></li></ul></li>
                <li class="active">
                    <a href="namespace-GuzzleHttp.html">
                        GuzzleHttp<span></span>
                    </a>

                        <ul>
                <li>
                    <a href="namespace-GuzzleHttp.Cookie.html">
                        Cookie                    </a>

                        </li>
                <li>
                    <a href="namespace-GuzzleHttp.Exception.html">
                        Exception                    </a>

                        </li>
                <li>
                    <a href="namespace-GuzzleHttp.Handler.html">
                        Handler                    </a>

                        </li>
                <li>
                    <a href="namespace-GuzzleHttp.Promise.html">
                        Promise                    </a>

                        </li>
                            </ul></li>
                <li>
                    <a href="namespace-Psr.html">
                        Psr<span></span>
                    </a>

                        <ul>
                <li>
                    <a href="namespace-Psr.Http.html">
                        Http<span></span>
                    </a>

                        <ul>
                <li>
                    <a href="namespace-Psr.Http.Message.html">
                        Message                    </a>

                        </li>
                            </ul></li></ul></li>
                <li>
                    <a href="namespace-Teto.html">
                        Teto<span></span>
                    </a>

                        <ul>
                <li>
                    <a href="namespace-Teto.Object.html">
                        Object                    </a>

                        </li>
                            </ul></li>
            </ul>
        </div>

        <hr>


        <div id="elements">
            <h3>Classes</h3>
            <ul>
                <li class="active"><a href="class-GuzzleHttp.Client.html">Client</a></li>
                <li><a href="class-GuzzleHttp.HandlerStack.html">HandlerStack</a></li>
                <li><a href="class-GuzzleHttp.MessageFormatter.html">MessageFormatter</a></li>
                <li><a href="class-GuzzleHttp.Middleware.html">Middleware</a></li>
                <li><a href="class-GuzzleHttp.Pool.html">Pool</a></li>
                <li><a href="class-GuzzleHttp.PrepareBodyMiddleware.html">PrepareBodyMiddleware</a></li>
                <li><a href="class-GuzzleHttp.RedirectMiddleware.html">RedirectMiddleware</a></li>
                <li><a href="class-GuzzleHttp.RequestOptions.html">RequestOptions</a></li>
                <li><a href="class-GuzzleHttp.RetryMiddleware.html">RetryMiddleware</a></li>
                <li><a href="class-GuzzleHttp.TransferStats.html">TransferStats</a></li>
                <li><a href="class-GuzzleHttp.UriTemplate.html">UriTemplate</a></li>
            </ul>

            <h3>Interfaces</h3>
            <ul>
                <li><a href="class-GuzzleHttp.ClientInterface.html">ClientInterface</a></li>
            </ul>




            <h3>Functions</h3>
            <ul>
                <li><a href="function-GuzzleHttp.choose_handler.html">choose_handler</a></li>
                <li><a href="function-GuzzleHttp.debug_resource.html">debug_resource</a></li>
                <li><a href="function-GuzzleHttp.default_ca_bundle.html">default_ca_bundle</a></li>
                <li><a href="function-GuzzleHttp.default_user_agent.html">default_user_agent</a></li>
                <li><a href="function-GuzzleHttp.describe_type.html">describe_type</a></li>
                <li><a href="function-GuzzleHttp.headers_from_lines.html">headers_from_lines</a></li>
                <li><a href="function-GuzzleHttp.is_host_in_noproxy.html">is_host_in_noproxy</a></li>
                <li><a href="function-GuzzleHttp.json_decode.html">json_decode</a></li>
                <li><a href="function-GuzzleHttp.json_encode.html">json_encode</a></li>
                <li><a href="function-GuzzleHttp.normalize_header_keys.html">normalize_header_keys</a></li>
                <li><a href="function-GuzzleHttp.uri_template.html">uri_template</a></li>
            </ul>
        </div>
    </div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
    <form id="search">
        <input type="hidden" name="cx" value="">
        <input type="hidden" name="ie" value="UTF-8">
        <input type="text" name="q" class="text" placeholder="Search">
    </form>

    <div id="navigation">
        <ul>
            <li>
                <a href="index.html" title="Overview"><span>Overview</span></a>
            </li>
            <li>
                <a href="namespace-GuzzleHttp.html" title="Summary of GuzzleHttp"><span>Namespace</span></a>
            </li>
            <li class="active">
<span>Class</span>            </li>
        </ul>
        <ul>
        </ul>
        <ul>
        </ul>
    </div>

<div id="content" class="class">
    <h1>Class Client</h1>



    <dl class="tree">
        <dd style="padding-left:0px">
<b><span>GuzzleHttp\Client</span></b>            
             implements 
                <a href="class-GuzzleHttp.ClientInterface.html"><span>GuzzleHttp\ClientInterface</span></a>
            
            
        </dd>
    </dl>








    <div class="info">
        
        
        <b>Namespace:</b> <a href="namespace-GuzzleHttp.html">GuzzleHttp</a><br>
        

            <b>Located at</b> <a href="source-class-GuzzleHttp.Client.html#11-408" title="Go to source code">Client.php</a>
        <br>
    </div>



    <table class="summary methods" id="methods">
    <caption>Methods summary</caption>
    <tr data-order="__construct" id="___construct">

        <td class="attributes"><code>
             public 

            
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#___construct">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#30-74" title="Go to source code">__construct</a>( <span>array <var>$config</var> = []</span> )</code>

        <div class="description short">
            <p>Clients accept an array of constructor parameters.</p>
        </div>

        <div class="description detailed hidden">
            <p>Clients accept an array of constructor parameters.</p>

<p>Here's an example of creating a client using a base_uri and an array of
default request options to apply to each request:
 $client = new Client([ 'base_uri'        => 'http://www.foo.com/1.0/', 'timeout'         => 0, 'allow_redirects' => false, 'proxy'           => '192.168.16.1:10' ]);</p>

<p>Client configuration settings include the following options:</p>

<ul>
<li>handler: (callable) Function that transfers HTTP requests over the wire. The function is called with a Psr7\Http\Message\RequestInterface and array of transfer options, and must return a GuzzleHttp\Promise\PromiseInterface that is fulfilled with a Psr7\Http\Message\ResponseInterface on success. "handler" is a constructor only option that cannot be overridden in per/request options. If no handler is provided, a default handler will be created that enables all of the request options below by attaching all of the default middleware to the handler.</li>
<li>base_uri: (string|UriInterface) Base URI of the client that is merged into relative URIs. Can be a string or instance of UriInterface.</li>
<li>**: any request option</li>
</ul>


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$config</var></dt>
                    <dd>Client configuration settings.</dd>
                </dl></div>



                <h4>See</h4>
                <div class="list">
                        \GuzzleHttp\RequestOptions for a list of available request options.<br>
                </div>


        </div>
        </div></td>
    </tr>
    <tr data-order="__call" id="___call">

        <td class="attributes"><code>
             public 

            
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#___call">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#76-88" title="Go to source code">__call</a>( <span> <var>$method</var></span>, <span> <var>$args</var></span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            







        </div>
        </div></td>
    </tr>
    <tr data-order="sendAsync" id="_sendAsync">

        <td class="attributes"><code>
             public 

            PromiseInterface
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#_sendAsync">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#90-99" title="Go to source code">sendAsync</a>( <span><code><a href="class-Psr.Http.Message.RequestInterface.html">Psr\Http\Message\RequestInterface</a></code> <var>$request</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            <p>Asynchronously send an HTTP request.</p>
        </div>

        <div class="description detailed hidden">
            <p>Asynchronously send an HTTP request.</p>


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$request</var></dt>
                    <dd>Request to send</dd>
                    <dt><var>$options</var></dt>
                    <dd><p>Request options to apply to the given
                                 request and to the transfer.</p></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    PromiseInterface
                </div>




                <h4>Implementation of</h4>
                <div class="list"><code><a href="class-GuzzleHttp.ClientInterface.html#_sendAsync">GuzzleHttp\ClientInterface::sendAsync()</a></code></div>
        </div>
        </div></td>
    </tr>
    <tr data-order="send" id="_send">

        <td class="attributes"><code>
             public 

            <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#_send">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#101-105" title="Go to source code">send</a>( <span><code><a href="class-Psr.Http.Message.RequestInterface.html">Psr\Http\Message\RequestInterface</a></code> <var>$request</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            <p>Send an HTTP request.</p>
        </div>

        <div class="description detailed hidden">
            <p>Send an HTTP request.</p>


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$request</var></dt>
                    <dd>Request to send</dd>
                    <dt><var>$options</var></dt>
                    <dd><p>Request options to apply to the given
                                 request and to the transfer.</p></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
                </div>

                <h4>Throws</h4>
                <div class="list">
                    GuzzleException
                </div>



                <h4>Implementation of</h4>
                <div class="list"><code><a href="class-GuzzleHttp.ClientInterface.html#_send">GuzzleHttp\ClientInterface::send()</a></code></div>
        </div>
        </div></td>
    </tr>
    <tr data-order="requestAsync" id="_requestAsync">

        <td class="attributes"><code>
             public 

            PromiseInterface
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#_requestAsync">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#107-124" title="Go to source code">requestAsync</a>( <span>string <var>$method</var></span>, <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var> = <span class="php-quote">''</span></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            <p>Create and send an asynchronous HTTP request.</p>
        </div>

        <div class="description detailed hidden">
            <p>Create and send an asynchronous HTTP request.</p>

<p>Use an absolute path to override the base path of the client, or a
relative path to append to the base path of the client. The URL can
contain the query string as well. Use an array to provide a URL
template and additional variables to use in the URL template expansion.</p>


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$method</var></dt>
                    <dd>HTTP method</dd>
                    <dt><var>$uri</var></dt>
                    <dd>URI object or string.</dd>
                    <dt><var>$options</var></dt>
                    <dd>Request options to apply.</dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    PromiseInterface
                </div>




                <h4>Implementation of</h4>
                <div class="list"><code><a href="class-GuzzleHttp.ClientInterface.html#_requestAsync">GuzzleHttp\ClientInterface::requestAsync()</a></code></div>
        </div>
        </div></td>
    </tr>
    <tr data-order="request" id="_request">

        <td class="attributes"><code>
             public 

            <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#_request">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#126-130" title="Go to source code">request</a>( <span>string <var>$method</var></span>, <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var> = <span class="php-quote">''</span></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            <p>Create and send an HTTP request.</p>
        </div>

        <div class="description detailed hidden">
            <p>Create and send an HTTP request.</p>

<p>Use an absolute path to override the base path of the client, or a
relative path to append to the base path of the client. The URL can
contain the query string as well.</p>


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$method</var></dt>
                    <dd>HTTP method.</dd>
                    <dt><var>$uri</var></dt>
                    <dd>URI object or string.</dd>
                    <dt><var>$options</var></dt>
                    <dd>Request options to apply.</dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
                </div>

                <h4>Throws</h4>
                <div class="list">
                    GuzzleException
                </div>



                <h4>Implementation of</h4>
                <div class="list"><code><a href="class-GuzzleHttp.ClientInterface.html#_request">GuzzleHttp\ClientInterface::request()</a></code></div>
        </div>
        </div></td>
    </tr>
    <tr data-order="getConfig" id="_getConfig">

        <td class="attributes"><code>
             public 

            mixed
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#_getConfig">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#132-137" title="Go to source code">getConfig</a>( <span>string|null <var>$option</var> = <span class="php-keyword1">null</span></span> )</code>

        <div class="description short">
            <p>Get a client configuration option.</p>
        </div>

        <div class="description detailed hidden">
            <p>Get a client configuration option.</p>

<p>These options include default request options of the client, a "handler"
(if utilized by the concrete client), and a "base_uri" if utilized by
the concrete client.</p>


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$option</var></dt>
                    <dd>The config option to retrieve.</dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    mixed
                </div>




                <h4>Implementation of</h4>
                <div class="list"><code><a href="class-GuzzleHttp.ClientInterface.html#_getConfig">GuzzleHttp\ClientInterface::getConfig()</a></code></div>
        </div>
        </div></td>
    </tr>
    </table>



    <table class="summary methods" id="magicMethods">
    <caption>Magic methods summary</caption>
    <tr data-order="get" id="m_get">

        <td class="attributes"><code>
             public 

            <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_get">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#12" title="Go to source code">get</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="head" id="m_head">

        <td class="attributes"><code>
             public 

            <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_head">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#13" title="Go to source code">head</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="put" id="m_put">

        <td class="attributes"><code>
             public 

            <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_put">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#14" title="Go to source code">put</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="post" id="m_post">

        <td class="attributes"><code>
             public 

            <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_post">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#15" title="Go to source code">post</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="patch" id="m_patch">

        <td class="attributes"><code>
             public 

            <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_patch">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#16" title="Go to source code">patch</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="delete" id="m_delete">

        <td class="attributes"><code>
             public 

            <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_delete">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#17" title="Go to source code">delete</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-Psr.Http.Message.ResponseInterface.html">Psr\Http\Message\ResponseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="getAsync" id="m_getAsync">

        <td class="attributes"><code>
             public 

            <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_getAsync">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#18" title="Go to source code">getAsync</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="headAsync" id="m_headAsync">

        <td class="attributes"><code>
             public 

            <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_headAsync">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#19" title="Go to source code">headAsync</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="putAsync" id="m_putAsync">

        <td class="attributes"><code>
             public 

            <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_putAsync">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#20" title="Go to source code">putAsync</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="postAsync" id="m_postAsync">

        <td class="attributes"><code>
             public 

            <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_postAsync">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#21" title="Go to source code">postAsync</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="patchAsync" id="m_patchAsync">

        <td class="attributes"><code>
             public 

            <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_patchAsync">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#22" title="Go to source code">patchAsync</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    <tr data-order="deleteAsync" id="m_deleteAsync">

        <td class="attributes"><code>
             public 

            <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
            
            </code>
        </td>

        <td class="name"><div>
        <a class="anchor" href="#m_deleteAsync">#</a>
        <code><a href="source-class-GuzzleHttp.Client.html#23" title="Go to source code">deleteAsync</a>( <span>string|<code><a href="class-Psr.Http.Message.UriInterface.html">Psr\Http\Message\UriInterface</a></code> <var>$uri</var></span>, <span>array <var>$options</var> = []</span> )</code>

        <div class="description short">
            
        </div>

        <div class="description detailed hidden">
            


                <h4>Parameters</h4>
                <div class="list"><dl>
                    <dt><var>$uri</var></dt>
                    <dd></dd>
                    <dt><var>$options</var></dt>
                    <dd></dd>
                </dl></div>

                <h4>Returns</h4>
                <div class="list">
                    <code><a href="class-GuzzleHttp.Promise.PromiseInterface.html">GuzzleHttp\Promise\PromiseInterface</a></code>
                </div>




        </div>
        </div></td>
    </tr>
    </table>






    <table class="summary inherited">
    <caption>Constants inherited from <a href="class-GuzzleHttp.ClientInterface.html#constants">GuzzleHttp\ClientInterface</a></caption>
    <tr>
        <td><code>
            <a href="class-GuzzleHttp.ClientInterface.html#VERSION"><b>VERSION</b></a>
        </code></td>
    </tr>
    </table>









</div>

    <div id="footer">
        ξ ^ω^)ξ Baguette PHP Mastodon API Client / SDK API documentation generated by <a href="http://apigen.org">ApiGen</a>
    </div>
</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>