Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F10615038
httprpc.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
httprpc.h
View Options
// Copyright (c) 2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_HTTPRPC_H
#define BITCOIN_HTTPRPC_H
#include
<httpserver.h>
#include
<rpc/server.h>
#include
<map>
#include
<string>
class
Config
;
class
HTTPRPCRequestProcessor
{
private
:
Config
&
config
;
RPCServer
&
rpcServer
;
bool
ProcessHTTPRequest
(
HTTPRequest
*
request
);
public
:
HTTPRPCRequestProcessor
(
Config
&
configIn
,
RPCServer
&
rpcServerIn
)
:
config
(
configIn
),
rpcServer
(
rpcServerIn
)
{}
static
bool
DelegateHTTPRequest
(
HTTPRPCRequestProcessor
*
requestProcessor
,
HTTPRequest
*
request
)
{
return
requestProcessor
->
ProcessHTTPRequest
(
request
);
}
};
/**
* Start HTTP RPC subsystem.
* Precondition; HTTP and RPC has been started.
*/
bool
StartHTTPRPC
(
HTTPRPCRequestProcessor
&
httpRPCRequestProcessor
);
/** Interrupt HTTP RPC subsystem */
void
InterruptHTTPRPC
();
/**
* Stop HTTP RPC subsystem.
* Precondition; HTTP and RPC has been stopped.
*/
void
StopHTTPRPC
();
/**
* Start HTTP REST subsystem.
* Precondition; HTTP and RPC has been started.
*/
void
StartREST
();
/** Interrupt RPC REST subsystem */
void
InterruptREST
();
/**
* Stop HTTP REST subsystem.
* Precondition; HTTP and RPC has been stopped.
*/
void
StopREST
();
#endif
// BITCOIN_HTTPRPC_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 23, 09:55 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4522925
Default Alt Text
httprpc.h (1 KB)
Attached To
rSTAGING Bitcoin ABC staging
Event Timeline
Log In to Comment