Skip to content

0.2.3

Choose a tag to compare

@oboard oboard released this 12 Jan 08:47
· 220 commits to main since this release

Async Support
The library now supports async/await for I/O operations:

readFile: Asynchronously read files
readDir: Asynchronously read directories
exec: Asynchronously execute commands
fetch: Asynchronously make HTTP requests

Async /GET Example
// async json data example

server.get("/async_data", async fn(
  _req : @mocket.HttpRequest,
  _res : @mocket.HttpResponse
) {
  { "name": "John Doe", "age": 30, "city": "New York" }
})