-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Joel Dice <[email protected]>
- Loading branch information
1 parent
d75fbf5
commit ab03e0f
Showing
40 changed files
with
871 additions
and
950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/libraries/System.Net.Http/src/System/Net/Http/WasiHttpHandler/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.tar.gz | ||
wasi-http-*.*.*/** |
2 changes: 1 addition & 1 deletion
2
src/libraries/System.Net.Http/src/System/Net/Http/WasiHttpHandler/WasiHttp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Generated by `wit-bindgen` 0.27.0. DO NOT EDIT! | ||
// Generated by `wit-bindgen` 0.29.0. DO NOT EDIT! | ||
// <auto-generated /> | ||
#nullable enable | ||
|
||
|
@@ -11,13 +11,13 @@ | |
using System.Diagnostics; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace WasiHttpWorld.wit.imports.wasi.clocks.v0_2_0 | ||
namespace WasiHttpWorld.wit.imports.wasi.clocks.v0_2_1 | ||
{ | ||
internal static class MonotonicClockInterop { | ||
|
||
internal static class NowWasmInterop | ||
{ | ||
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "now"), WasmImportLinkage] | ||
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "now"), WasmImportLinkage] | ||
internal static extern long wasmImportNow(); | ||
|
||
} | ||
|
@@ -32,7 +32,7 @@ internal static unsafe ulong Now() | |
|
||
internal static class ResolutionWasmInterop | ||
{ | ||
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "resolution"), WasmImportLinkage] | ||
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "resolution"), WasmImportLinkage] | ||
internal static extern long wasmImportResolution(); | ||
|
||
} | ||
|
@@ -47,31 +47,31 @@ internal static unsafe ulong Resolution() | |
|
||
internal static class SubscribeInstantWasmInterop | ||
{ | ||
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "subscribe-instant"), WasmImportLinkage] | ||
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "subscribe-instant"), WasmImportLinkage] | ||
internal static extern int wasmImportSubscribeInstant(long p0); | ||
|
||
} | ||
|
||
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable SubscribeInstant(ulong when) | ||
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable SubscribeInstant(ulong when) | ||
{ | ||
var result = SubscribeInstantWasmInterop.wasmImportSubscribeInstant(unchecked((long)(when))); | ||
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable.THandle(result)); | ||
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable.THandle(result)); | ||
return resource; | ||
|
||
//TODO: free alloc handle (interopString) if exists | ||
} | ||
|
||
internal static class SubscribeDurationWasmInterop | ||
{ | ||
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "subscribe-duration"), WasmImportLinkage] | ||
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "subscribe-duration"), WasmImportLinkage] | ||
internal static extern int wasmImportSubscribeDuration(long p0); | ||
|
||
} | ||
|
||
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable SubscribeDuration(ulong when) | ||
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable SubscribeDuration(ulong when) | ||
{ | ||
var result = SubscribeDurationWasmInterop.wasmImportSubscribeDuration(unchecked((long)(when))); | ||
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable.THandle(result)); | ||
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable.THandle(result)); | ||
return resource; | ||
|
||
//TODO: free alloc handle (interopString) if exists | ||
|
Oops, something went wrong.