websockets-rs / websockets-rs/rust-websocket

How to get response header?

Open
#272 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.6k
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Hi,
I'm using this crate as websocket client, I want to know how to get response header?
My code like below,

let ws_client = ClientBuild:new(...)...;
let (mut ws_read, mut ws_write) = ws_client.split.unwrap();

// write loop
std::thread::spawn(move || {
    loop {
        ws_write.send_message(...);
    }
});

// read loop
std::thread::spawn(move || {
    for message in ws_read.incomming_messages() {
        // I want to get response header here.
         ...
    }
});

Or how to get response header in handshaking?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the client handshake and the ClientBuild, split, and incoming_messages APIs shown in the issue. Determine where the handshake response is represented and whether its headers remain accessible after splitting; done means the supported access path is identified or the required API/documentation scope is defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.