Struct tk_http::websocket::Key [] [src]

pub struct Key(_);

The Sec-WebSocket-Key header value

You can add it using enc.format_header("Sec-WebSocket-Key", key). Or use any other thing that supports Display.

Methods

impl Key
[src]

Create a new (random) key, eligible to use for client connection

Trait Implementations

impl Display for Key
[src]

Formats the value using the given formatter.

impl Debug for Key
[src]

Formats the value using the given formatter.