aboutsummaryrefslogtreecommitdiff
path: root/src/httprpc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make KEY_SIZE a compile-time constantPieter Wuille2017-02-171-1/+1
| | | | | Github-Pull: #9785 Rebased-From: 914fad155d9fc76b42b3a0414dd14b5ebc36062f
* [trivial] Fix typos in commentspracticalswift2017-01-271-1/+1
|
* Fix memory leak in multiUserAuthorizedPieter Wuille2017-01-121-2/+2
|
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Un-expose mapArgs from utils.hMatt Corallo2016-12-241-2/+2
|
* Fix non-const mapMultiArgs[] access after init.Matt Corallo2016-12-231-1/+1
| | | | | Swap mapMultiArgs for a const-reference to a _mapMultiArgs which is only accessed in util.cpp
* [RPC] pass HTTP basic authentication username to the JSONRequest objectJonas Schnelli2016-10-191-4/+7
|
* [RPC] Give RPC commands more information about the RPC requestJonas Schnelli2016-10-191-2/+5
|
* Do not shadow member variablesPavel Janík2016-07-311-1/+1
|
* Make sure LogPrintf strings are line-terminatedMarcoFalke2016-03-011-1/+1
|
* rpc: Add WWW-Authenticate header to 401 responseWladimir J. van der Laan2016-02-081-0/+5
| | | | | | | | | | A WWW-Authenticate header must be present in the 401 response to make clients know that they can authenticate, and how. WWW-Authenticate: Basic realm="jsonrpc" Fixes #7462.
* Merge #7348: MOVE ONLY: move rpc* to rpc/Wladimir J. van der Laan2016-01-281-2/+2
|\ | | | | | | | | d13f65e rpc: update inline comments to refer to new file paths (Daniel Cousens) a0eaff8 move rpc* to rpc/ (Daniel Cousens)
| * move rpc* to rpc/Daniel Cousens2016-01-211-2/+2
| |
* | Merge #7300: [trivial] Add missing copyright headersWladimir J. van der Laan2016-01-271-0/+4
|\ \ | |/ |/| | | | | | | fabcee1 Remove copyright header from autogenerated chainparamsseeds.h (MarcoFalke) fa60d05 Add missing copyright headers (MarcoFalke) fa7e4c0 Bump copyright headers to 2014 (MarcoFalke)
| * Add missing copyright headersMarcoFalke2016-01-051-0/+4
| |
* | [RPC] remove the option of having multiple timer interfacesJonas Schnelli2016-01-081-2/+2
|/
* Added additional config option for multiple RPC users.Gregory Sanders2015-11-291-1/+55
|
* Implement RPCTimerHandler for Qt RPC consoleWladimir J. van der Laan2015-09-031-15/+7
| | | | | | | Implement RPCTimerHandler for Qt RPC console, so that `walletpassphrase` works with GUI and `-server=0`. Also simplify HTTPEvent-related code by using boost::function directly.
* evhttpd implementationWladimir J. van der Laan2015-09-031-0/+201
- *Replace usage of boost::asio with [libevent2](http://libevent.org/)*. boost::asio is not part of C++11, so unlike other boost there is no forwards-compatibility reason to stick with it. Together with #4738 (convert json_spirit to UniValue), this rids Bitcoin Core of the worst offenders with regard to compile-time slowness. - *Replace spit-and-duct-tape http server with evhttp*. Front-end http handling is handled by libevent, a work queue (with configurable depth and parallelism) is used to handle application requests. - *Wrap HTTP request in C++ class*; this makes the application code mostly HTTP-server-neutral - *Refactor RPC to move all http-specific code to a separate file*. Theoreticaly this can allow building without HTTP server but with another RPC backend, e.g. Qt's debug console (currently not implemented) or future RPC mechanisms people may want to use. - *HTTP dispatch mechanism*; services (e.g., RPC, REST) register which URL paths they want to handle. By using a proven, high-performance asynchronous networking library (also used by Tor) and HTTP server, problems such as #5674, #5655, #344 should be avoided. What works? bitcoind, bitcoin-cli, bitcoin-qt. Unit tests and RPC/REST tests pass. The aim for now is everything but SSL support. Configuration options: - `-rpcthreads`: repurposed as "number of work handler threads". Still defaults to 4. - `-rpcworkqueue`: maximum depth of work queue. When this is reached, new requests will return a 500 Internal Error. - `-rpctimeout`: inactivity time, in seconds, after which to disconnect a client. - `-debug=http`: low-level http activity logging