-
Notifications
You must be signed in to change notification settings - Fork 10
Structures
All structures are defined in the proxy namespace.
Abstract
HttpInfo* getInfo() const;HttpInfo::Request getRequest() constExtends 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() constAbstract
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() constChecks if the request is paused by the proxy.
bool isPaused() constChecks if the request is still in progress.
bool isInProgress() constChecks if the request has completed.
bool isCompleted() constChecks if the request returned an error.
bool isFaulty() constChecks if the request has been cancelled by either the proxy or the original requester.
bool isCancelled() constChecks if the request is a repeat of a previous request by making use of the send button in the GDIntercept menu.
bool isRepeat() constChecks if the response has been received.
void responseReceived() constsize_t getID() constenums::State getState() constHttpInfo::Request getRequest() constHttpInfo::Response getResponse() constHttpInfo::ContentType typestd::string contentsStringifies the protocol of the URL to one of the following:
HTTPHTTPSUNKNOWN
std::string stringifyProtocol() constStringifies the query string of the URL to a formatted JSON string.
std::string stringifyQuery(const bool raw = false) constFormats the host with the port if it is not the default port for the protocol or is a localhost.
std::string getPortHost() constenums::Origin getOrigin() constenums::Protocol getProtocol() conststd::string getMethod() conststd::string getOriginal() constGets the original URL without the query string.
std::string getQueryLess() conststd::string getHost() conststd::string getPort() conststd::string getPath() constnlohmann::json getQuery() constStringifies the headers of the request to a formatted JSON string.
std::string stringifyHeaders(const bool raw = false) constGets the body contents of the request.
HttpInfo::HttpContent getBodyContent(const bool raw = true) constHttpInfo::URL getURL() constnlohmann::json getHeaders() conststd::string getBody() constenums::ContentType getContentType() constStringifies the headers of the response to a formatted JSON string.
std::string stringifyHeaders(const bool raw = false) constStringifies 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() constGets the response contents of the request.
HttpInfo::HttpContent getResponseContent(const bool raw = true) constChecks if the response has been received.
bool received() constnlohmann::json getHeaders() constint getStatusCode() conststd::string getResponse() constenums::ContentType getContentType() const