Fix translation for section "HTTP routing" in 13.2.md

This commit is contained in:
Anchor
2015-01-15 10:23:05 -08:00
parent a6ec054957
commit 3f67b3126b

View File

@@ -1,13 +1,13 @@
# 13.2 Customized routers
# 13.2 Customizing routers
## 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)
- HTTP request method(method)(GET, POST, PUT, DELETE, PATCH, etc. )
-The user requested path (for example, `/user/123,/article/123`), and any query strings or parameters that come with it (for example, `?id=11`)
-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