Request
Playwright\Network\RequestInterface
Methods
url()
stringfunction url(): string
method()
stringfunction method(): string
headers()
arrayfunction headers(): array
headerValue()
?stringCase-insensitive single header value, or null if not present.
function headerValue(string $name): ?string
headersArray()
arrayHeaders as a list of name/value pairs.
function headersArray(): array
allHeaders()
arrayAll headers as a map (alias of headers()).
function allHeaders(): array
postData()
?stringfunction postData(): ?string
postDataJSON()
?arrayfunction postDataJSON(): ?array
resourceType()
stringfunction resourceType(): string
isNavigationRequest()
boolfunction isNavigationRequest(): bool
postDataBuffer()
?stringfunction postDataBuffer(): ?string
failure()
?arrayfunction failure(): ?array
frame()
?FrameInterfacefunction frame(): ?FrameInterface
redirectedFrom()
?selffunction redirectedFrom(): ?self
redirectedTo()
?selffunction redirectedTo(): ?self
response()
?ResponseInterfacefunction response(): ?ResponseInterface
existingResponse()
?ResponseInterfaceThe response if it has already arrived, without waiting for one.
function existingResponse(): ?ResponseInterface
serviceWorker()
mixedfunction serviceWorker(): mixed
sizes()
arrayfunction sizes(): array
timing()
arrayfunction timing(): array