0.2.3
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" }
})