Trait fastly::experimental::RequestUpgradeWebsocket

source ·
pub trait RequestUpgradeWebsocket {
    // Required methods
    fn handoff_websocket(self, backend: &str) -> Result<(), SendError>;
    fn handoff_fanout(self, backend: &str) -> Result<(), SendError>;
}
Expand description

An extension trait for Requests that adds a method for upgrading websockets.

Required Methods§

source

fn handoff_websocket(self, backend: &str) -> Result<(), SendError>

👎Deprecated since 0.10.0: The RequestUpgradeWebsocket::handoff_websocket() trait method is now part of Request.
source

fn handoff_fanout(self, backend: &str) -> Result<(), SendError>

👎Deprecated since 0.10.0: The RequestUpgradeWebsocket::handoff_fanout() trait method is now part of Request.

Implementors§