Fix translation for section "HTTP routing" in 13.2.md
This commit is contained in:
10
en/13.2.md
10
en/13.2.md
@@ -1,13 +1,13 @@
|
|||||||
# 13.2 Customized routers
|
# 13.2 Customizing routers
|
||||||
|
|
||||||
## HTTP routing
|
## HTTP routing
|
||||||
|
|
||||||
HTTP HTTP request routing components corresponding function handed process( or a struct method ), as described in the previous section structure, in the frame corresponds to a routing event handler, and the event comprises:
|
The HTTP routing component is responsible for mapping HTTP requests to a corresponding function or `struct` method. The router takes two key pieces of information from incoming requests:
|
||||||
|
|
||||||
- User requests a path(path)( e.g.:/user/123,/article/123), of course, the query string information(e.g., ? Id = 11)
|
-The user requested path (for example, `/user/123,/article/123`), and any query strings or parameters that come with it (for example, `?id=11`)
|
||||||
- HTTP request method(method)(GET, POST, PUT, DELETE, PATCH, etc. )
|
-The HTTP request method (GET, POST, PUT, and DELETE, PATCH, etc.)
|
||||||
|
|
||||||
The router is based on the user's request is forwarded to the respective event information processing function( control layer ).
|
The router then forwards the request to the handler function (controller layer) that has been registered with that particular HTTP method and path.
|
||||||
|
|
||||||
## Default route to achieve
|
## Default route to achieve
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user