Raven Core  3.0.0
P2P Digital Currency
Classes | Enumerations | Functions
rest.cpp File Reference
#include "chain.h"
#include "chainparams.h"
#include "core_io.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "validation.h"
#include "httpserver.h"
#include "rpc/blockchain.h"
#include "rpc/server.h"
#include "streams.h"
#include "sync.h"
#include "txmempool.h"
#include "utilstrencodings.h"
#include "version.h"
#include <boost/algorithm/string.hpp>
#include <univalue.h>
Include dependency graph for rest.cpp:

Go to the source code of this file.

Classes

struct  CCoin
 

Enumerations

enum  RetFormat { RF_UNDEF, RF_BINARY, RF_HEX, RF_JSON }
 

Functions

UniValue getblockchaininfo (const JSONRPCRequest &request)
 
bool StartREST ()
 Start HTTP REST subsystem. More...
 
void InterruptREST ()
 Interrupt RPC REST subsystem. More...
 
void StopREST ()
 Stop HTTP REST subsystem. More...
 

Enumeration Type Documentation

◆ RetFormat

enum RetFormat
Enumerator
RF_UNDEF 
RF_BINARY 
RF_HEX 
RF_JSON 

Definition at line 28 of file rest.cpp.

Function Documentation

◆ getblockchaininfo()

UniValue getblockchaininfo ( const JSONRPCRequest request)

Definition at line 1331 of file blockchain.cpp.

Here is the call graph for this function:

◆ InterruptREST()

void InterruptREST ( )

Interrupt RPC REST subsystem.

Definition at line 588 of file rest.cpp.

Here is the caller graph for this function:

◆ StartREST()

bool StartREST ( )

Start HTTP REST subsystem.

Precondition; HTTP and RPC has been started.

Definition at line 581 of file rest.cpp.

◆ StopREST()

void StopREST ( )

Stop HTTP REST subsystem.

Precondition; HTTP and RPC has been stopped.

Definition at line 592 of file rest.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ handler

bool(* handler) (HTTPRequest *req, const std::string &strReq)

Definition at line 569 of file rest.cpp.

◆ prefix

const char* prefix

Definition at line 568 of file rest.cpp.