A WebAssembly System Interface API for URLs.
Phase 1
- George Kulakowski
- Radu Matei
TODO before entering Phase 2.
- Introduction
- Goals [or Motivating Use Cases, or Scenarios]
- Non-goals
- API walk-through
- Detailed design discussion
- Considered alternatives
- Stakeholder Interest & Feedback
- References & acknowledgements
URLs are a very common, standardized vocabulary and interchage type. This proposal defines a URL resource and operations on it.
This proposal will adhere to the WHATWG URL spec.
Concretely, this will mean using terminology as defined in that document.
Besides the WHATWG specification, there are a series of IETF RFCs defining the syntax and semantics of URLs, as well as RFCs defining constraints for specific schemes. Furthermore, various browser, OS, and language standard library APIs define URL data types.
The choice to use the WHATWG specification is deliberate. TODO WHY
This proposal will not include constructors or accessors tailored to specific URL schemes defined by other RFCs, at least initially.
This proposal makes a URL a resource type. The overhead of the resource abstraction is a cost that some use cases of URLs may not want to pay.
The WASI URL interface will contain a URL resource type and methods for creating and consuming URL resources.
[Walk through of how someone would use this API.]
[Provide example code snippets and diagrams explaining how the API would be used to solve the given problem]
[etc.]
[This section should mostly refer to the .wit.md file that specifies the API. This section is for any discussion of the choices made in the API which don't make sense to document in the spec file itself.]
[Talk through the tradeoffs in coming to the specific design point you want to make.]
// Illustrated with example code.
[This may be an open question, in which case you should link to any active discussion threads.]
[etc.]
[This section is not required if you already covered considered alternatives in the design discussion above.]
[Describe an alternative which was considered, and why you decided against it.]
[etc.]
TODO before entering Phase 3.
[This should include a list of implementers who have expressed interest in implementing the proposal]
The WHATWG URL spec defines URLs, and an API that substantially informs this one.
Many thanks for valuable feedback and advice from:
- [Person 1]
- [Person 2]
- [etc.]