PHP 클래스 Clue\React\Buzz\Browser

파일 보기 프로젝트 열기: clue/buzz-react 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( React\EventLoop\LoopInterface $loop, Sender $sender = null, MessageFactory $messageFactory = null )
delete ( $url, $headers = [], $content = '' )
get ( $url, $headers = [] )
head ( $url, $headers = [] )
patch ( $url, $headers = [], $content = '' )
post ( $url, $headers = [], $content = '' )
put ( $url, $headers = [], $content = '' )
send ( Psr\Http\Message\RequestInterface $request )
submit ( $url, array $fields, $headers = [], $method = 'POST' )
withBase ( string | Psr\Http\Message\UriInterface $baseUri ) : self Creates a new Browser instance with the given absolute base URI
withOptions ( array $options )
withSender ( Sender $sender )
withoutBase ( ) : self Creates a new Browser instance *without* a base URL

메소드 상세

__construct() 공개 메소드

public __construct ( React\EventLoop\LoopInterface $loop, Sender $sender = null, MessageFactory $messageFactory = null )
$loop React\EventLoop\LoopInterface
$sender Clue\React\Buzz\Io\Sender
$messageFactory Clue\React\Buzz\Message\MessageFactory

delete() 공개 메소드

public delete ( $url, $headers = [], $content = '' )

get() 공개 메소드

public get ( $url, $headers = [] )

head() 공개 메소드

public head ( $url, $headers = [] )

patch() 공개 메소드

public patch ( $url, $headers = [], $content = '' )

post() 공개 메소드

public post ( $url, $headers = [], $content = '' )

put() 공개 메소드

public put ( $url, $headers = [], $content = '' )

send() 공개 메소드

public send ( Psr\Http\Message\RequestInterface $request )
$request Psr\Http\Message\RequestInterface

submit() 공개 메소드

public submit ( $url, array $fields, $headers = [], $method = 'POST' )
$fields array

withBase() 공개 메소드

This is mostly useful for using (RESTful) HTTP APIs. Any relative URI passed to any of the request methods will simply be appended behind the given $baseUri. By definition of this library, a given base URI MUST always absolute and can not contain any placeholders.
또한 보기: self::withoutBase()
public withBase ( string | Psr\Http\Message\UriInterface $baseUri ) : self
$baseUri string | Psr\Http\Message\UriInterface absolute base URI
리턴 self

withOptions() 공개 메소드

public withOptions ( array $options )
$options array

withSender() 공개 메소드

public withSender ( Sender $sender )
$sender Clue\React\Buzz\Io\Sender

withoutBase() 공개 메소드

Creates a new Browser instance *without* a base URL
또한 보기: self::withBase()
public withoutBase ( ) : self
리턴 self