Molybden API
Loading...
Searching...
No Matches
molybden::RequestCompleted Struct Reference

The NetworkEvents::onRequestCompleted event arguments. More...

#include <network_events.hpp>

Public Attributes

std::shared_ptr< Networknetwork
 The network instance initiated this event.
 
UrlRequest url_request
 The URL request that has been completed.
 
uint32_t response_code
 The HTTP response code or 0 if the request has been failed or canceled.
 
UrlRequestStatus status
 The status of the URL request.
 
NetError error_code
 The URL request error code.
 
bool is_cached
 True if the response has been taken from cache.
 

Detailed Description

The NetworkEvents::onRequestCompleted event arguments.

Member Data Documentation

◆ error_code

NetError molybden::RequestCompleted::error_code

The URL request error code.

In case the request has failed, contains the error code of the network. Otherwise, has the default NetError::kUnspecified value.


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