File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import gleam/dynamic . { type Dynamic }
2
- import gleam/form_data . { type FormData }
2
+ import gleam/fetch/ form_data . { type FormData }
3
3
import gleam/http/request . { type Request }
4
4
import gleam/http/response . { type Response }
5
5
import gleam/javascript/promise . { type Promise }
Original file line number Diff line number Diff line change 1
1
pub type FormData
2
2
3
- @ external ( javascript , "../gleam_fetch_ffi.mjs" , "newFormData" )
3
+ @ external ( javascript , "../../ gleam_fetch_ffi.mjs" , "newFormData" )
4
4
pub fn new ( ) -> FormData
5
5
6
- @ external ( javascript , "../gleam_fetch_ffi.mjs" , "appendFormData" )
6
+ @ external ( javascript , "../../ gleam_fetch_ffi.mjs" , "appendFormData" )
7
7
pub fn append ( form_data : FormData , key : String , value : String ) -> FormData
8
8
9
- @ external ( javascript , "../gleam_fetch_ffi.mjs" , "appendBitsFormData" )
9
+ @ external ( javascript , "../../ gleam_fetch_ffi.mjs" , "appendBitsFormData" )
10
10
pub fn append_bits (
11
11
form_data : FormData ,
12
12
key : String ,
13
13
value : BitArray ,
14
14
) -> FormData
15
15
16
- @ external ( javascript , "../gleam_fetch_ffi.mjs" , "setFormData" )
16
+ @ external ( javascript , "../../ gleam_fetch_ffi.mjs" , "setFormData" )
17
17
pub fn set ( form_data : FormData , key : String , value : String ) -> FormData
18
18
19
- @ external ( javascript , "../gleam_fetch_ffi.mjs" , "setBitsFormData" )
19
+ @ external ( javascript , "../../ gleam_fetch_ffi.mjs" , "setBitsFormData" )
20
20
pub fn set_bits ( form_data : FormData , key : String , value : BitArray ) -> FormData
You can’t perform that action at this time.
0 commit comments