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#
Headers Property#
Gets the request headers.
Motus.Abstractions.IHeaderCollection Headers { get; }
Property Value#
IsNavigationRequest Property#
Gets whether this request is a navigation request.
bool IsNavigationRequest { get; }
Property Value#
Method Property#
Gets the HTTP method of the request (e.g. "GET", "POST").
string Method { get; }
Property Value#
PostData Property#
Gets the request post data, or null if there is none.
string? PostData { get; }
Property Value#
ResourceType Property#
Gets the resource type of the request (e.g. "document", "script", "image").
string ResourceType { get; }
Property Value#
Response Property#
Gets the response for this request, or null if the request was not fulfilled.
Motus.Abstractions.IResponse? Response { get; }
Property Value#
Url Property#
Gets the URL of the request.
string Url { get; }