Skip to content

Commit 77e6aa0

Browse files
docs: explain routing header handshake
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
1 parent 4c09043 commit 77e6aa0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/client/sea.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ struct SessionRoutingHeaders {
8181

8282
impl SessionRoutingHeaders {
8383
fn from_response(headers: &HeaderMap) -> Self {
84+
// The response marks the session for real-time routing with REALTIME_SESSION_HEADER;
85+
// follow-up requests select that route with REALTIME_DIRECT_ROUTING_HEADER.
8486
let direct_routing_enabled = headers
8587
.get(REALTIME_SESSION_HEADER)
8688
.and_then(|value| value.to_str().ok())

0 commit comments

Comments
 (0)