mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
add js url support to fetch
This commit is contained in:
parent
373d2f4a4d
commit
4ab0320c98
4 changed files with 33 additions and 13 deletions
|
@ -24,8 +24,8 @@ use wasm_bindgen_futures::spawn_local;
|
|||
use crate::{
|
||||
tokioio::TokioIo,
|
||||
utils::{entries_of_object, from_entries, ws_key},
|
||||
EpoxyClient, EpoxyError, EpoxyHandlers, EpoxyWebSocketHeadersInput, EpoxyWebSocketInput,
|
||||
HttpBody,
|
||||
EpoxyClient, EpoxyError, EpoxyHandlers, EpoxyUrlInput, EpoxyWebSocketHeadersInput,
|
||||
EpoxyWebSocketInput, HttpBody,
|
||||
};
|
||||
|
||||
#[wasm_bindgen]
|
||||
|
@ -39,7 +39,7 @@ impl EpoxyWebSocket {
|
|||
pub(crate) async fn connect(
|
||||
client: &EpoxyClient,
|
||||
handlers: EpoxyHandlers,
|
||||
url: String,
|
||||
url: EpoxyUrlInput,
|
||||
protocols: Vec<String>,
|
||||
headers: EpoxyWebSocketHeadersInput,
|
||||
user_agent: &str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue