Response
Playwright\Network\ResponseInterface
Methods
headerValue()
?stringThe first value of the header, or null when the header is absent.
function headerValue(string $name): ?string
url()
stringfunction url(): string
status()
intfunction status(): int
statusText()
stringfunction statusText(): string
ok()
boolfunction ok(): bool
headers()
arrayfunction headers(): array
headerValues()
arrayCase-insensitive multiple header values (split on commas).
function headerValues(string $name): array
headersArray()
arrayHeaders as a list of name/value pairs; values split on commas.
function headersArray(): array
httpVersion()
?stringProtocol the response was delivered over, such as "HTTP/1.1" or "h2"; null when unknown.
function httpVersion(): ?string
body()
stringfunction body(): string
text()
stringfunction text(): string
json()
arrayfunction json(): array
allHeaders()
arrayfunction allHeaders(): array
finished()
?stringfunction finished(): ?string
frame()
?FrameInterfacefunction frame(): ?FrameInterface
fromServiceWorker()
boolfunction fromServiceWorker(): bool
request()
RequestInterfacefunction request(): RequestInterface
securityDetails()
?arrayfunction securityDetails(): ?array
serverAddr()
?arrayfunction serverAddr(): ?array