Skip to main content

gateway_client

Function gateway_client 

Source
pub(super) fn gateway_client() -> &'static Client
Expand description

The client for model traffic. AppState::http_client ends every request 10 seconds after it starts, reading the body included, which would cut off a streamed answer; this one bounds connecting and each wait for the next chunk, and puts no limit on the whole answer.