pub trait ResponseInitExt {
// Required methods
fn websocket(&mut self, val: &WebSocket) -> Result<&mut Self, JsValue>;
fn encode_body(&mut self, val: &str) -> Result<&mut Self, JsValue>;
fn cf(&mut self, val: &JsValue) -> Result<&mut Self, JsValue>;
}Required Methods§
sourcefn websocket(&mut self, val: &WebSocket) -> Result<&mut Self, JsValue>
fn websocket(&mut self, val: &WebSocket) -> Result<&mut Self, JsValue>
Change the webSocket field of this object.
sourcefn encode_body(&mut self, val: &str) -> Result<&mut Self, JsValue>
fn encode_body(&mut self, val: &str) -> Result<&mut Self, JsValue>
Change the encodeBody field of this object.
Object Safety§
This trait is not object safe.