-
Notifications
You must be signed in to change notification settings - Fork 9
Structures
All structures are defined in the proxy
namespace.
Abstract
HttpInfo* getInfo() const;
HttpInfo::Request getRequest() const
Extends ProxyEvent
Sent upon the evoking of a request event listener.
RequestEvent::getInfo() = ProxyEvent::getInfo
RequestEvent::getRequest() = ProxyEvent::getRequest
Extends ProxyEvent
Sent upon the evoking of a response event listener.
ResponseEvent::getInfo() = ProxyEvent::getInfo
ResponseEvent::getRequest() = ProxyEvent::getRequest
HttpInfo::Response getResponse() const
Abstract
ProxyFilter(const enums::OriginFilter origin = OriginFilter::ALL_FILTER)
ProxyFilter(const std::vector<std::string>& urlParts)
Extends ProxyFilter
RequestFilter::RequestFilter() = ProxyFilter::ProxyFilter
Extends ProxyFilter
ResponseFilter::ResponseFilter() = ProxyFilter::ProxyFilter
Cancels the request if it hasn't finished yet.
void cancel() const
Checks if the request is paused by the proxy.
bool isPaused() const
Checks if the request is still in progress.
bool isInProgress() const
Checks if the request has completed.
bool isCompleted() const
Checks if the request returned an error.
bool isFaulty() const
Checks if the request has been cancelled by either the proxy or the original requester.
bool isCancelled() const
Checks if the request is a repeat of a previous request by making use of the send button in the GDIntercept menu.
bool isRepeat() const
Checks if the response has been received.
void responseReceived() const
size_t getID() const
enums::State getState() const
HttpInfo::Request getRequest() const
HttpInfo::Response getResponse() const
HttpInfo::ContentType type
std::string contents
Stringifies the protocol of the URL to one of the following:
HTTP
HTTPS
UNKNOWN
std::string stringifyProtocol() const
Stringifies the query string of the URL to a formatted JSON string.
std::string stringifyQuery(const bool raw = false) const
Formats the host with the port if it is not the default port for the protocol or is a localhost.
std::string getPortHost() const
enums::Origin getOrigin() const
enums::Protocol getProtocol() const
std::string getMethod() const
std::string getOriginal() const
Gets the original URL without the query string.
std::string getQueryLess() const
std::string getHost() const
std::string getPort() const
std::string getPath() const
nlohmann::json getQuery() const
Stringifies the headers of the request to a formatted JSON string.
std::string stringifyHeaders(const bool raw = false) const
Gets the body contents of the request.
HttpInfo::HttpContent getBodyContent(const bool raw = true) const
HttpInfo::URL getURL() const
nlohmann::json getHeaders() const
std::string getBody() const
enums::ContentType getContentType() const
Stringifies the headers of the response to a formatted JSON string.
std::string stringifyHeaders(const bool raw = false) const
Stringifies the status code of the response to either the integer code or one of the following error codes:
-
No response available yet
(0) -
Request Error
(-1) -
Request Timeout
(-2) -
Request Cancelled
(-3)
std::string stringifyStatusCode() const
Gets the response contents of the request.
HttpInfo::HttpContent getResponseContent(const bool raw = true) const
Checks if the response has been received.
bool received() const
nlohmann::json getHeaders() const
int getStatusCode() const
std::string getResponse() const
enums::ContentType getContentType() const