Skip to content

Core\Http\Response

The reply to an outbound HTTP call: its status code, its headers, its body, and the TLS connection it came over. Core\Http\Client::get() returns one.

Returned by

You get a Core\Http\Response from these methods:

Members

7 members.

MemberSignature
statusstatus(): int
texttext(): tainted string
bytesbytes(): tainted bytes
jsonAsjsonAs<T>({ maxDepth?: uint }): T
headerheader(string $name): ?tainted string
headersheaders(string $name): array<tainted string>
tlstls(): ?Core\Http\TlsInfo