BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Types | Public Member Functions | Public Attributes | List of all members
fc::http::reply Struct Reference

#include <connection.hpp>

Public Types

enum  status_code {
  OK = 200, RecordCreated = 201, NoContent = 204, BadRequest = 400,
  NotAuthorized = 401, NotFound = 404, Found = 302, InternalServerError = 500
}
 

Public Member Functions

 reply (status_code c=OK)
 

Public Attributes

int status
 
std::vector< headerheaders
 
std::vector< char > body
 
std::string body_as_string
 

Detailed Description

Definition at line 23 of file connection.hpp.

Member Enumeration Documentation

◆ status_code

Enumerator
OK 
RecordCreated 
NoContent 
BadRequest 
NotAuthorized 
NotFound 
Found 
InternalServerError 

Definition at line 25 of file connection.hpp.

Constructor & Destructor Documentation

◆ reply()

fc::http::reply::reply ( status_code  c = OK)
inline

Definition at line 35 of file connection.hpp.

Member Data Documentation

◆ body

std::vector<char> fc::http::reply::body

Definition at line 38 of file connection.hpp.

◆ body_as_string

std::string fc::http::reply::body_as_string

Definition at line 39 of file connection.hpp.

◆ headers

std::vector<header> fc::http::reply::headers

Definition at line 37 of file connection.hpp.

◆ status

int fc::http::reply::status

Definition at line 36 of file connection.hpp.


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