worker_sys::ext

Trait ResponseExt

source
pub trait ResponseExt {
    // Required methods
    fn websocket(&self) -> Option<WebSocket>;
    fn cf(&self) -> Option<Object>;
}

Required Methods§

source

fn websocket(&self) -> Option<WebSocket>

Getter for the webSocket field of this object.

source

fn cf(&self) -> Option<Object>

Getter for the cf field of this object.

Implementations on Foreign Types§

source§

impl ResponseExt for Response

Implementors§