Skip to content

How to get response header? #272

@lewiszlw

Description

@lewiszlw

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions