Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • AbstractMessage
  • EntityEnclosingRequest
  • Header
  • HeaderComparison
  • PostFile
  • Request
  • RequestFactory
  • Response

Interfaces

  • EntityEnclosingRequestInterface
  • MessageInterface
  • PostFileInterface
  • RequestFactoryInterface
  • RequestInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Interface RequestFactoryInterface

Request factory used to create HTTP requests

Direct known implementers

Guzzle\Http\Message\RequestFactory
Namespace: Guzzle\Http\Message
Located at Guzzle/Http/Message/RequestFactoryInterface.php
Methods summary
public Guzzle\Http\Message\RequestInterface
# fromMessage( string $message )

Create a new request based on an HTTP message

Create a new request based on an HTTP message

Parameters

$message
string
$message HTTP message as a string

Returns

Guzzle\Http\Message\RequestInterface
public Guzzle\Http\Message\RequestInterface
# fromParts( string $method, array $urlParts, array|Guzzle\Common\Collection $headers = null, string|resource|array|Guzzle\Http\EntityBodyInterface $body = null, string $protocol = 'HTTP', string $protocolVersion = '1.1' )

Create a request from URL parts as returned from parse_url()

Create a request from URL parts as returned from parse_url()

Parameters

$method
string
$method HTTP method (GET, POST, PUT, HEAD, DELETE, etc)
$urlParts
array
$urlParts URL parts containing the same keys as parse_url() - scheme: e.g. http - host: e.g. www.guzzle-project.com - port: e.g. 80 - user: e.g. michael - pass: e.g. rocks - path: e.g. / OR /index.html - query: after the question mark ?
$headers
array|Guzzle\Common\Collection
$headers HTTP headers
$body
string|resource|array|Guzzle\Http\EntityBodyInterface
$body Body to send in the request
$protocol
string
$protocol Protocol (HTTP, SPYDY, etc)
$protocolVersion
string
$protocolVersion 1.0, 1.1, etc

Returns

Guzzle\Http\Message\RequestInterface
public Guzzle\Http\Message\RequestInterface
# create( string $method, string|Guzzle\Http\Url $url, array|Guzzle\Common\Collection $headers = null, string|resource|array|Guzzle\Http\EntityBodyInterface $body = null )

Create a new request based on the HTTP method

Create a new request based on the HTTP method

Parameters

$method
string
$method HTTP method (GET, POST, PUT, PATCH, HEAD, DELETE, ...)
$url
string|Guzzle\Http\Url
$url HTTP URL to connect to
$headers
array|Guzzle\Common\Collection
$headers HTTP headers
$body
string|resource|array|Guzzle\Http\EntityBodyInterface
$body Body to send in the request

Returns

Guzzle\Http\Message\RequestInterface
php-coveralls API documentation generated by ApiGen 2.8.0