From 3f67b3126b9de3205c8ec31dad061c95cbfbf72f Mon Sep 17 00:00:00 2001 From: Anchor Date: Thu, 15 Jan 2015 10:23:05 -0800 Subject: [PATCH] Fix translation for section "HTTP routing" in 13.2.md --- en/13.2.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/en/13.2.md b/en/13.2.md index 71943bd1..afe5cec4 100644 --- a/en/13.2.md +++ b/en/13.2.md @@ -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