GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
GenerallyPositive.GPALCall Class Reference

One request the page made, as reported by the browser while .CaptureCalls was on. Where a GPALRequest says what to ask for, this says what was asked for, so an endpoint can be read off a page rather than guessed at and then written into a request. More...

Properties

string Url [get, set]
 The full url requested.
string Method [get, set]
 The HTTP method, GET, POST and so on.
string ResourceType [get, set]
 What the browser was fetching it as: XHR, Fetch, Document, Script, Image and the rest.
string PostData [get, set]
 The request body, when it had one. Null for a GET.
string Initiator [get, set]
 What set it off: parser, script, preload or other.
int Status [get, set]
 The HTTP status the site answered with, or 0 when nothing came back yet. What the page itself got, which is how you tell an endpoint worth calling from one the page is failing at too.
Dictionary< string, string > Headers = new Dictionary<string, string>() [get, set]
 The headers the page sent with it. What its own code added is here, which is what an API expects and a request built by hand leaves out. Hand them back with .WithHeader.

Detailed Description

One request the page made, as reported by the browser while .CaptureCalls was on. Where a GPALRequest says what to ask for, this says what was asked for, so an endpoint can be read off a page rather than guessed at and then written into a request.

Definition at line 28 of file GPALRequest.cs.

Property Documentation

◆ Headers

Dictionary<string, string> GenerallyPositive.GPALCall.Headers = new Dictionary<string, string>()
getset

The headers the page sent with it. What its own code added is here, which is what an API expects and a request built by hand leaves out. Hand them back with .WithHeader.

Definition at line 51 of file GPALRequest.cs.

◆ Initiator

string GenerallyPositive.GPALCall.Initiator
getset

What set it off: parser, script, preload or other.

Definition at line 39 of file GPALRequest.cs.

◆ Method

string GenerallyPositive.GPALCall.Method
getset

The HTTP method, GET, POST and so on.

Definition at line 33 of file GPALRequest.cs.

◆ PostData

string GenerallyPositive.GPALCall.PostData
getset

The request body, when it had one. Null for a GET.

Definition at line 37 of file GPALRequest.cs.

◆ ResourceType

string GenerallyPositive.GPALCall.ResourceType
getset

What the browser was fetching it as: XHR, Fetch, Document, Script, Image and the rest.

Definition at line 35 of file GPALRequest.cs.

◆ Status

int GenerallyPositive.GPALCall.Status
getset

The HTTP status the site answered with, or 0 when nothing came back yet. What the page itself got, which is how you tell an endpoint worth calling from one the page is failing at too.

Definition at line 44 of file GPALRequest.cs.

◆ Url

string GenerallyPositive.GPALCall.Url
getset

The full url requested.

Definition at line 31 of file GPALRequest.cs.


The documentation for this class was generated from the following file: