Bitcoin Core  0.18.99
P2P Digital Currency
Classes | Enumerations | Functions
rest.cpp File Reference
#include <attributes.h>
#include <chain.h>
#include <chainparams.h>
#include <core_io.h>
#include <httpserver.h>
#include <index/txindex.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <rpc/blockchain.h>
#include <rpc/server.h>
#include <streams.h>
#include <sync.h>
#include <txmempool.h>
#include <util/strencodings.h>
#include <validation.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 { RetFormat::UNDEF, RetFormat::BINARY, RetFormat::HEX, RetFormat::JSON }
 

Functions

UniValue getblockchaininfo (const JSONRPCRequest &request)
 
void 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
strong
Enumerator
UNDEF 
BINARY 
HEX 
JSON 

Definition at line 29 of file rest.cpp.

Function Documentation

◆ getblockchaininfo()

UniValue getblockchaininfo ( const JSONRPCRequest request)

Definition at line 1295 of file blockchain.cpp.

Here is the call graph for this function:

◆ InterruptREST()

void InterruptREST ( )

Interrupt RPC REST subsystem.

Definition at line 645 of file rest.cpp.

Here is the caller graph for this function:

◆ StartREST()

void StartREST ( )

Start HTTP REST subsystem.

Precondition; HTTP and RPC has been started.

Definition at line 639 of file rest.cpp.

◆ StopREST()

void StopREST ( )

Stop HTTP REST subsystem.

Precondition; HTTP and RPC has been stopped.

Definition at line 649 of file rest.cpp.

Variable Documentation

◆ handler

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

Definition at line 626 of file rest.cpp.

◆ name

const char* name

Definition at line 38 of file rest.cpp.

◆ prefix

const char* prefix

Definition at line 625 of file rest.cpp.

◆ rf

Definition at line 37 of file rest.cpp.