Skip to main content

from_source

Function from_source 

Source
fn from_source(info: &RpcRequestInfo, expected: Source, request: &str) -> bool
Expand description

Determines if a request came from the expected source.

A rejection is logged with the request’s [RpcRequest::NAME], the source it came from, and the source that was expected.