PHP 클래스 Icicle\Http\Client\Requester

파일 보기 프로젝트 열기: icicleio/http 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Driver $driver = null )
request ( Icicle\Socket\Socket $socket, string $method, string | Icicle\Http\Message\Uri $uri, array $headers = [], Icicle\Stream\ReadableStream $body = null, array $options = [] ) : Generator
send ( Icicle\Socket\Socket $socket, Request $request, array $options = [] ) : Generator

메소드 상세

__construct() 공개 메소드

public __construct ( Driver $driver = null )
$driver Driver

request() 공개 메소드

public request ( Icicle\Socket\Socket $socket, string $method, string | Icicle\Http\Message\Uri $uri, array $headers = [], Icicle\Stream\ReadableStream $body = null, array $options = [] ) : Generator
$socket Icicle\Socket\Socket
$method string
$uri string | Icicle\Http\Message\Uri
$headers array
$body Icicle\Stream\ReadableStream
$options array
리턴 Generator

send() 공개 메소드

public send ( Icicle\Socket\Socket $socket, Request $request, array $options = [] ) : Generator
$socket Icicle\Socket\Socket
$request Request
$options array
리턴 Generator