aboutsummaryrefslogtreecommitdiff
path: root/crates/arti-rpcserver/src/msgs
Commit message (Collapse)AuthorAgeFilesLines
* Fix typosDimitris Apostolou2023-07-221-1/+1
|
* Arti: Add ability to remember the list of methods names.Nick Mathewson2023-04-191-4/+3
| | | | | | | | | | | | Right now, this lets us say whether the method was unrecognized or whether the parameter type was incorrect. We'll use this to enforce correct method names later on. (I have to add another `inventory` here, since the `typetag` maintainer does not want to expose this functionality: see https://github.com/dtolnay/typetag/issues/57#issuecomment-1506106290 )
* rpcserver: Fix a couple of broken rustdoc linksNick Mathewson2023-04-161-2/+3
|
* rpc: Improve error reporting for invalid requestsNick Mathewson2023-04-121-0/+84
This is a bit big, but it's not that _complicated_. The idea here is that we use serde's "untagged" enum facility when parsing our `Request`s, such that if parsing as a `Request` fails, we parse as an `InvalidRequest` and try to report what the problem was exactly. This lets us determine the ID of a request (if it had one), so we can report that ID in our error message. We can also recover from a much broader variety of errors. We now also conform with the spec reporting errors about completely wrong json, requests without IDs, and so on.