Expand description
Proc-macros for mik-sdk - clean JSON syntax for WASI HTTP handlers.
Macros§
- accepted
- Return 202 Accepted.
- bad_
request - Return 400 Bad Request.
- conflict
- Return 409 Conflict.
- created
- Create a 201 Created response.
- ensure
- Unwrap Option/Result or return error.
- error
- Return RFC 7807 Problem Details error response.
- fetch
- Build an HTTP client request.
- forbidden
- Return 403 Forbidden.
- guard
- Early return validation guard.
- ids
- Collect field values from a list.
- json
- Create a JSON value with clean syntax.
- no_
content - Create a 204 No Content response.
- not_
found - Return 404 Not Found.
- ok
- Return 200 OK with JSON body.
- redirect
- Create a redirect response.
- routes
- Define routes with typed inputs and OpenAPI generation.