Skip to content

Commit f228a67

Browse files
committed
rust: add missing documentation to forward_http function
1 parent bdbf764 commit f228a67

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rust/src/copilot_request_handler.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ static SHARED_HTTP_CLIENT: LazyLock<SharedHttpClient> = LazyLock::new(|| {
389389
hyper_util::client::legacy::Client::builder(hyper_util::rt::TokioExecutor::new()).build(https)
390390
});
391391

392+
/// Forward an HTTP request to its real upstream and stream the response back.
393+
///
394+
/// This is the default behaviour of [`CopilotRequestHandler::send_request`];
395+
/// consumers that mutate a request can call it to forward the mutated request.
392396
pub async fn forward_http(
393397
request: CopilotHttpRequest,
394398
) -> Result<CopilotHttpResponse, CopilotRequestError> {

0 commit comments

Comments
 (0)