char/avril
(wip) why'd you have to go and make things so complicaaaaated?
git clone https://git.t4t.associates/char/avril
f2c35fd
main
1declare module"ext:core/ops" { 2export type FetchMetadata = [ 3status :number , 4statusText :string , 5headers :[ name :string , value :string ][], 6url :string , 7redirected :boolean , 8abandonedUpload :boolean , 9]; 10export type FetchSendArgs = [ 11id :number , 12url :string , 13method :string , 14headers :[ name :string , value :string ][], 15bytes :Uint8Array < ArrayBuffer > | null , 16streaming :boolean , 17redirect :"follow" | "error" | "manual" , 18]; 19export function op_fetch_base () :string ; 20export function op_fetch_create ( unit :null ) :number ; 21export function op_fetch_cancel ( id :number ) :null ; 22export function op_fetch_send ( args :FetchSendArgs ) :Promise < FetchMetadata >; 23export function op_fetch_read ( id :number ) :Promise < Uint8Array < ArrayBuffer > | null >; 24export function op_fetch_read_all ( id :number ) :Promise < Uint8Array < ArrayBuffer >>; 25export function op_fetch_write ( args :[ id :number , bytes :Uint8Array < ArrayBuffer > | null ]) :Promise < boolean >; 26}