HttpClient
extends DisposerBase
in package
HTTPへ旅立つのだ。
Table of Contents
Properties
- $isDisposed : bool
- 解放済みか。
- $options : HttpClientOptions
Methods
- __construct() : mixed
- __destruct() : mixed
- delete() : HttpClientResponse
- dispose() : void
- 解放処理。
- empty() : IDisposable
- 何もしない解放処理オブジェクトを生成。
- get() : HttpClientResponse
- isDisposed() : bool
- 解放済みか。
- patch() : HttpClientResponse
- post() : HttpClientResponse
- put() : HttpClientResponse
- request() : HttpClientResponse
- send() : HttpClientResponse
- createRequest() : HttpClientRequest
- リクエストを内部用に変換。
- disposeImpl() : void
- 解放処理内部実装。
- sendCore() : HttpClientResponse
- throwIfDisposed() : void
- 解放済みの場合、例外を投げる。
Properties
$isDisposed
解放済みか。
private
bool
$isDisposed
= false
$options
private
HttpClientOptions
$options
Methods
__construct()
public
__construct(HttpClientOptions $options) : mixed
Parameters
- $options : HttpClientOptions
__destruct()
public
final __destruct() : mixed
delete()
public
final delete(Url $url[, HttpHeader|null $header = null ][, HttpClientContentBase|null $content = null ]) : HttpClientResponse
Parameters
- $url : Url
- $header : HttpHeader|null = null
- $content : HttpClientContentBase|null = null
Return values
HttpClientResponsedispose()
解放処理。
public
final dispose() : void
empty()
何もしない解放処理オブジェクトを生成。
public
static empty() : IDisposable
Return values
IDisposableget()
public
final get(Url $url[, HttpHeader|null $header = null ]) : HttpClientResponse
Parameters
- $url : Url
- $header : HttpHeader|null = null
Return values
HttpClientResponseisDisposed()
解放済みか。
public
isDisposed() : bool
Return values
boolpatch()
public
final patch(Url $url[, HttpHeader|null $header = null ][, HttpClientContentBase|null $content = null ]) : HttpClientResponse
Parameters
- $url : Url
- $header : HttpHeader|null = null
- $content : HttpClientContentBase|null = null
Return values
HttpClientResponsepost()
public
final post(Url $url[, HttpHeader|null $header = null ][, HttpClientContentBase|null $content = null ]) : HttpClientResponse
Parameters
- $url : Url
- $header : HttpHeader|null = null
- $content : HttpClientContentBase|null = null
Return values
HttpClientResponseput()
public
final put(Url $url[, HttpHeader|null $header = null ][, HttpClientContentBase|null $content = null ]) : HttpClientResponse
Parameters
- $url : Url
- $header : HttpHeader|null = null
- $content : HttpClientContentBase|null = null
Return values
HttpClientResponserequest()
public
static request(HttpClientRequest $request, HttpClientOptions $options) : HttpClientResponse
Parameters
- $request : HttpClientRequest
- $options : HttpClientOptions
Return values
HttpClientResponsesend()
public
send(HttpClientRequest $request) : HttpClientResponse
Parameters
- $request : HttpClientRequest
Return values
HttpClientResponsecreateRequest()
リクエストを内部用に変換。
protected
createRequest(HttpClientRequest $raw) : HttpClientRequest
Parameters
- $raw : HttpClientRequest
Return values
HttpClientRequestdisposeImpl()
解放処理内部実装。
protected
disposeImpl() : void
継承先で継承元を呼び出すこと。
sendCore()
protected
sendCore(HttpClientRequest $request) : HttpClientResponse
Parameters
- $request : HttpClientRequest
Return values
HttpClientResponsethrowIfDisposed()
解放済みの場合、例外を投げる。
protected
final throwIfDisposed() : void