28 #include <olp/core/CoreApi.h> 
   48   RequestIdMin = std::numeric_limits<RequestId>::min() + 1,
 
   57   AUTHORIZATION_ERROR = -2,
 
   58   INVALID_URL_ERROR = -3,
 
   61   AUTHENTICATION_ERROR = -6,
 
  103     return error_code_ == ErrorCode::SUCCESS &&
 
  104            request_id_ != kInvalidRequestId;
 
  125   RequestId request_id_{kInvalidRequestId};
 
  127   ErrorCode error_code_{ErrorCode::SUCCESS};
 
  137 using Header = std::pair<std::string, std::string>;
 
Rrepresents the outcome of a network request.
Definition: NetworkTypes.h:76
 
SendOutcome(RequestId request_id)
Sets a successful request outcome.
Definition: NetworkTypes.h:87
 
RequestId GetRequestId() const
Gets the request ID.
Definition: NetworkTypes.h:113
 
bool IsSuccessful() const
Checks if the network request push was successful.
Definition: NetworkTypes.h:102
 
ErrorCode GetErrorCode() const
Gets the error code.
Definition: NetworkTypes.h:121
 
SendOutcome(ErrorCode error_code)
Sets an unsuccessful request outcome.
Definition: NetworkTypes.h:94
 
RequestIdConstants
The list of special values for NetworkRequestId.
Definition: NetworkTypes.h:44
 
@ RequestIdMax
The maximum value of the valid request ID.
 
@ RequestIdMin
The minimum value of the valid request ID.
 
@ RequestIdInvalid
The value that indicates the invalid request ID.
 
ErrorCode
The common Network error codes.
Definition: NetworkTypes.h:54
 
@ UNKNOWN_ERROR
Internal error that can't be interpreted.
 
CORE_API std::string ErrorCodeToString(ErrorCode code)
The helper function that converts an error code to a human readable string.
 
std::uint64_t RequestId
A unique request ID.
Definition: NetworkTypes.h:41
 
std::vector< Header > Headers
An alias for a vector of the HTTP headers.
Definition: NetworkTypes.h:140
 
std::pair< std::string, std::string > Header
An alias for the HTTP header.
Definition: NetworkTypes.h:137
 
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24