Response

Playwright\Network\ResponseInterface

Methods

headerValue()

?string

The first value of the header, or null when the header is absent.

function headerValue(string $name): ?string

url()

string
function url(): string

status()

int
function status(): int

statusText()

string
function statusText(): string

ok()

bool
function ok(): bool

headers()

array
function headers(): array

headerValues()

array

Case-insensitive multiple header values (split on commas).

function headerValues(string $name): array

headersArray()

array

Headers as a list of name/value pairs; values split on commas.

function headersArray(): array

httpVersion()

?string

Protocol the response was delivered over, such as "HTTP/1.1" or "h2"; null when unknown.

function httpVersion(): ?string

body()

string
function body(): string

text()

string
function text(): string

json()

array
function json(): array

allHeaders()

array
function allHeaders(): array

finished()

?string
function finished(): ?string

frame()

?FrameInterface
function frame(): ?FrameInterface

fromServiceWorker()

bool
function fromServiceWorker(): bool

request()

RequestInterface
function request(): RequestInterface

securityDetails()

?array
function securityDetails(): ?array

serverAddr()

?array
function serverAddr(): ?array