Check if outgoing Request can be created
This use-case is intended to check if a LocalRequest can be created
based on a given Request for a given peer
.
Parameters
- The
content
as a Request for the to be created LocalRequest - The
peer
is the address for which the LocalRequest should be created. There can only be one peer per LocalRequest.
On Success
- Returns a
RequestValidationResult
that indicates if the given Request is valid.
On Failure
- The LocalRequest cannot be created if the peer is unknown.
- The LocalRequest cannot be created if the Request is malformed.