@@ -33,20 +33,20 @@ app.get('/id/:id', (context) => context.params.id)
33
33
34
34
## Context
35
35
Context's properties consists of
36
- - request: Raw ` Request ` for accessing data as web standard type
37
- - body: Body which come with the request
38
- - query: Parsed path query as a simple object
39
- - params: Path parameters as a simple object
40
- - store: A global mutable store for Elysia instance
41
- - set: Response representation
42
- - status: response status
43
- - headers: response headers
44
- - redirect: redirect to new path
36
+ - ` request ` : Raw ` Request ` for accessing data as web standard type
37
+ - ` body ` : Body which come with the request
38
+ - ` query ` : Parsed path query as a simple object
39
+ - ` params ` : Path parameters as a simple object
40
+ - ` store ` : A global mutable store for Elysia instance
41
+ - ` set ` : Response representation
42
+ - ` status ` : response status
43
+ - ` headers ` : response headers
44
+ - ` redirect ` : redirect to new path
45
45
46
46
And a few helper methods for convenient usage:
47
- status: Function to set HTTP response status code
48
- redirect: Function to redirect to different path
49
- setHeader: Syntax sugar for setting specific header value
47
+ - ` status ` : Function to set HTTP response status code
48
+ - ` redirect ` : Function to redirect to different path
49
+ - ` setHeader ` : Syntax sugar for setting specific header value
50
50
51
51
For both context, you can easily access in ` Handler ` function:
52
52
` ` ` typescript
0 commit comments