pub trait RemoteGraphQLDataSource: Sync + Send + 'static {
fn name(&self) -> &str;
fn address(&self) -> &str;
fn tls(&self) -> bool { ... }
fn query_path(&self) -> Option<&str> { ... }
fn subscribe_path(&self) -> Option<&str> { ... }
fn url_query(&self) -> String { ... }
fn url_subscription(&self) -> String { ... }
fn will_send_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 mut Request,
ctx: &'life2 Context
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
{ ... }
fn did_receive_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
response: &'life1 mut Response,
ctx: &'life2 Context
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
{ ... }
}Expand description
! Represents a connection between your federated gateway and one of your subgraphs.
Required Methods
Provided Methods
fn query_path(&self) -> Option<&str>
fn subscribe_path(&self) -> Option<&str>
fn url_subscription(&self) -> String
! Override willSendRequest to modify your gateway’s requests to the subgraph before they’re sent.
! Override willSendRequest to modify your gateway’s requests to the subgraph before they’re sent.