Skip to content

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.

MemberSignature
getget(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
postpost(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
putput(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
patchpatch(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
deletedelete(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
headhead(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
requestrequest(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
openStreamopenStream(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
openSocketopenSocket(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