summaryrefslogtreecommitdiff
path: root/src/RpcRequest.cc
Commit message (Collapse)AuthorAgeFilesLines
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-14/+15
|
* Remove request pre-authorization againNils Maier2014-07-221-5/+3
|
* Delay auth failures instead of PBKDF2Nils Maier2014-07-221-1/+1
| | | | Closes GH-256
* Authorize RPC multicalls only once.Nils Maier2014-05-201-3/+4
| | | | | Cache the auth status afterwards and just assume the token still matches (within the same request, of course).
* Use std::unique_ptr for ValueBase object hierarchyTatsuhiro Tsujikawa2013-07-111-23/+11
|
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-3/+3
|
* Initialized scalar membersTatsuhiro Tsujikawa2012-10-291-1/+1
|
* Return appropriate HTTP status code on RPC failure.Tatsuhiro Tsujikawa2012-05-191-0/+4
| | | | | | | In this change, we return 404 if the request path is neither /json-rpc nor /rpc. If XML feature is not enabled and /rpc is requested, return 404. If XML parser failed, return 400. JSON parser failure has been handled well in the existing code.
* Throw exception if parameter has wrong type in RPC method.Tatsuhiro Tsujikawa2011-09-251-36/+0
| | | | | | | Formally, depending on the method implementation, this kind of error is just ignored and parameter is skipped. Now aria2 responds error for these cases. The required parameter checking is also reworked along with this change.
* Moved jsonRpc flag from RpcMethod to RpcRequest.Tatsuhiro Tsujikawa2011-06-151-2/+2
| | | | Now RpcMethod is stateless, so we can cache and reuse them.
* Renamed classes in abstract layer of RPC service from XmlRpc* to Rpc*.Tatsuhiro Tsujikawa2011-03-141-0/+105
Now JSON-RPC is available by default regardless of XML library. XML-RPC becomes available when XML library is available.