Skip to content

Commit f576a1a

Browse files
committed
add relevant link
1 parent 12e52cf commit f576a1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

working-with-request/index.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ You can read `lastLogin` data as follows,
239239
lastLogin := jsonRequest.getParsedBodyParam('login.lastLogin');
240240
```
241241

242-
The process of wrapping original request as `TJsonRequest` is implemented in `TJsonContentTypeMiddleware` middleware. When you attach this middleware to a route, everytime application receive method `POST`, `PUT`, `PATCH` or `DELETE` with `Content-Type` header set to `application/json`, original request will be wrapped inside `TJsonRequest`.
242+
The process of wrapping original request as `TJsonRequest` is implemented in `TJsonContentTypeMiddleware` middleware ([View TJsonContentTypeMiddleware source](https://github.com/fanoframework/fano/blob/master/src/Middleware/BuiltIns/JsonContentTypeMiddlewareImpl.pas)).
243+
. When you attach this middleware to a route, everytime application receive method `POST`, `PUT`, `PATCH` or `DELETE` with `Content-Type` header set to `application/json`, original request will be wrapped inside `TJsonRequest` ([View TJsonRequest source](https://github.com/fanoframework/fano/blob/master/src/Http/Request/JsonRequestImpl.pas)).
243244

244245
To register this middleware, use `TJsonContentTypeMiddlewareFactory` class.
245246

0 commit comments

Comments
 (0)