Core\Http\Client
Sends HTTP requests to other servers, with one method for each HTTP verb. Each call returns the reply as a Core\Http\Response.
Members
9 members.
| Member | Signature |
|---|---|
get | get(string|Core\Http\Target $url, { deadline?: Core\Time\Duration, connectTimeout?: Core\Time\Duration, headers?: array<secret string>, followRedirects?: uint, retryAttempts?: uint, retryBackoff?: Core\Time\Duration, retryIdempotencyKey?: string, json?: mixed, form?: array<secret tainted string>, body?: secret tainted string|secret tainted bytes|Core\Http\Part, contentType?: string, multipart?: array<secret tainted string|Core\Http\Part>, identity?: Core\Http\Identity, tlsCa?: string, tlsPin?: string|array<string>, tlsVerifyHost?: bool, tlsVerify?: bool, tlsMinVersion?: string, connectTo?: string, redirectToHttp?: bool }): Core\Http\Response |
post | post(string|Core\Http\Target $url, { deadline?: Core\Time\Duration, connectTimeout?: Core\Time\Duration, headers?: array<secret string>, followRedirects?: uint, retryAttempts?: uint, retryBackoff?: Core\Time\Duration, retryIdempotencyKey?: string, json?: mixed, form?: array<secret tainted string>, body?: secret tainted string|secret tainted bytes|Core\Http\Part, contentType?: string, multipart?: array<secret tainted string|Core\Http\Part>, identity?: Core\Http\Identity, tlsCa?: string, tlsPin?: string|array<string>, tlsVerifyHost?: bool, tlsVerify?: bool, tlsMinVersion?: string, connectTo?: string, redirectToHttp?: bool }): Core\Http\Response |
put | put(string|Core\Http\Target $url, { deadline?: Core\Time\Duration, connectTimeout?: Core\Time\Duration, headers?: array<secret string>, followRedirects?: uint, retryAttempts?: uint, retryBackoff?: Core\Time\Duration, retryIdempotencyKey?: string, json?: mixed, form?: array<secret tainted string>, body?: secret tainted string|secret tainted bytes|Core\Http\Part, contentType?: string, multipart?: array<secret tainted string|Core\Http\Part>, identity?: Core\Http\Identity, tlsCa?: string, tlsPin?: string|array<string>, tlsVerifyHost?: bool, tlsVerify?: bool, tlsMinVersion?: string, connectTo?: string, redirectToHttp?: bool }): Core\Http\Response |
patch | patch(string|Core\Http\Target $url, { deadline?: Core\Time\Duration, connectTimeout?: Core\Time\Duration, headers?: array<secret string>, followRedirects?: uint, retryAttempts?: uint, retryBackoff?: Core\Time\Duration, retryIdempotencyKey?: string, json?: mixed, form?: array<secret tainted string>, body?: secret tainted string|secret tainted bytes|Core\Http\Part, contentType?: string, multipart?: array<secret tainted string|Core\Http\Part>, identity?: Core\Http\Identity, tlsCa?: string, tlsPin?: string|array<string>, tlsVerifyHost?: bool, tlsVerify?: bool, tlsMinVersion?: string, connectTo?: string, redirectToHttp?: bool }): Core\Http\Response |
delete | delete(string|Core\Http\Target $url, { deadline?: Core\Time\Duration, connectTimeout?: Core\Time\Duration, headers?: array<secret string>, followRedirects?: uint, retryAttempts?: uint, retryBackoff?: Core\Time\Duration, retryIdempotencyKey?: string, json?: mixed, form?: array<secret tainted string>, body?: secret tainted string|secret tainted bytes|Core\Http\Part, contentType?: string, multipart?: array<secret tainted string|Core\Http\Part>, identity?: Core\Http\Identity, tlsCa?: string, tlsPin?: string|array<string>, tlsVerifyHost?: bool, tlsVerify?: bool, tlsMinVersion?: string, connectTo?: string, redirectToHttp?: bool }): Core\Http\Response |
head | head(string|Core\Http\Target $url, { deadline?: Core\Time\Duration, connectTimeout?: Core\Time\Duration, headers?: array<secret string>, followRedirects?: uint, retryAttempts?: uint, retryBackoff?: Core\Time\Duration, retryIdempotencyKey?: string, json?: mixed, form?: array<secret tainted string>, body?: secret tainted string|secret tainted bytes|Core\Http\Part, contentType?: string, multipart?: array<secret tainted string|Core\Http\Part>, identity?: Core\Http\Identity, tlsCa?: string, tlsPin?: string|array<string>, tlsVerifyHost?: bool, tlsVerify?: bool, tlsMinVersion?: string, connectTo?: string, redirectToHttp?: bool }): Core\Http\Response |
request | request(Core\Http\Method $method, string|Core\Http\Target $url, { deadline?: Core\Time\Duration, connectTimeout?: Core\Time\Duration, headers?: array<secret string>, followRedirects?: uint, retryAttempts?: uint, retryBackoff?: Core\Time\Duration, retryIdempotencyKey?: string, json?: mixed, form?: array<secret tainted string>, body?: secret tainted string|secret tainted bytes|Core\Http\Part, contentType?: string, multipart?: array<secret tainted string|Core\Http\Part>, identity?: Core\Http\Identity, tlsCa?: string, tlsPin?: string|array<string>, tlsVerifyHost?: bool, tlsVerify?: bool, tlsMinVersion?: string, connectTo?: string, redirectToHttp?: bool }): Core\Http\Response |
openStream | openStream(Core\Http\Method $method, string|Core\Http\Target $url, { deadline?: Core\Time\Duration, connectTimeout?: Core\Time\Duration, headers?: array<secret string>, followRedirects?: uint, retryAttempts?: uint, retryBackoff?: Core\Time\Duration, retryIdempotencyKey?: string, json?: mixed, form?: array<secret tainted string>, body?: secret tainted string|secret tainted bytes|Core\Http\Part, contentType?: string, multipart?: array<secret tainted string|Core\Http\Part>, identity?: Core\Http\Identity, tlsCa?: string, tlsPin?: string|array<string>, tlsVerifyHost?: bool, tlsVerify?: bool, tlsMinVersion?: string, connectTo?: string, redirectToHttp?: bool, idle?: Core\Time\Duration, maxDuration?: Core\Time\Duration }): Core\Http\Stream |
openSocket | openSocket(string|Core\Http\Target $url, { deadline?: Core\Time\Duration, connectTimeout?: Core\Time\Duration, headers?: array<secret string>, identity?: Core\Http\Identity, tlsCa?: string, tlsPin?: string|array<string>, tlsVerifyHost?: bool, tlsVerify?: bool, tlsMinVersion?: string, connectTo?: string, protocols?: array<string>, idle?: Core\Time\Duration, maxDuration?: Core\Time\Duration, maxMessage?: uint, sendTimeout?: Core\Time\Duration, ping?: Core\Time\Duration }): Core\Http\Socket |
