Overview

Namespaces

  • Docta
    • MercadoLibre
      • Exception
      • OAuth2
        • Client
          • Test
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
      • Test
      • Tests
    • Psr7
    • Test
      • Handler
    • Tests
      • CookieJar
      • Event
      • Exception
      • Handler
      • Promise
      • Psr7
  • League
    • OAuth2
      • Client
        • Grant
          • Exception
        • Provider
          • Exception
        • Test
          • Grant
          • Provider
            • Exception
            • Fake
          • Token
          • Tool
        • Token
        • Tool
  • None
  • Psr
    • Http
      • Message

Classes

  • RequestFactory

Traits

  • ArrayAccessorTrait
  • BearerAuthorizationTrait
  • MacAuthorizationTrait
  • ProviderRedirectTrait
  • QueryBuilderTrait
  • RequiredParameterTrait
  • Overview
  • Namespace
  • Class
  • Download

Class RequestFactory

Used to produce PSR-7 Request instances.

Namespace: League\OAuth2\Client\Tool
Link: https://github.com/guzzle/guzzle/pull/1101
Located at src/Tool/RequestFactory.php
Methods summary
public GuzzleHttp\Psr7\Request
# getRequest( null|string $method, null|string $uri, array $headers = [], string|resource|StreamInterface $body = null, string $version = '1.1' )

Creates a PSR-7 Request instance.

Creates a PSR-7 Request instance.

Parameters

$method
HTTP method for the request.
$uri
URI for the request.
$headers
Headers for the message.
$body
Message body.
$version
HTTP protocol version.

Returns

GuzzleHttp\Psr7\Request
protected array
# parseOptions( array $options )

Parses simplified options.

Parses simplified options.

Parameters

$options
Simplified options.

Returns

array
Extended options for use with getRequest.
public GuzzleHttp\Psr7\Request
# getRequestWithOptions( null|string $method, null|string $uri, array $options = [] )

Creates a request using a simplified array of options.

Creates a request using a simplified array of options.

Parameters

$method
$uri
$options

Returns

GuzzleHttp\Psr7\Request
MercadoLibre PHP SDK API documentation generated by ApiGen