Docs · API reference · Motus.Abstractions

IRequest Interface#

Represents an HTTP request sent by the page.

public interface IRequest

Properties#

Frame Property#

Gets the frame that initiated this request.

Motus.Abstractions.IFrame Frame { get; }

Property Value#

IFrame

Headers Property#

Gets the request headers.

Motus.Abstractions.IHeaderCollection Headers { get; }

Property Value#

IHeaderCollection

IsNavigationRequest Property#

Gets whether this request is a navigation request.

bool IsNavigationRequest { get; }

Property Value#

System.Boolean

Method Property#

Gets the HTTP method of the request (e.g. "GET", "POST").

string Method { get; }

Property Value#

System.String

PostData Property#

Gets the request post data, or null if there is none.

string? PostData { get; }

Property Value#

System.String

ResourceType Property#

Gets the resource type of the request (e.g. "document", "script", "image").

string ResourceType { get; }

Property Value#

System.String

Response Property#

Gets the response for this request, or null if the request was not fulfilled.

Motus.Abstractions.IResponse? Response { get; }

Property Value#

IResponse

Url Property#

Gets the URL of the request.

string Url { get; }

Property Value#

System.String