1
0
mirror of https://github.com/actix/actix-website synced 2025-02-02 12:19:04 +01:00

Fixed the location of a parenthetical comment

The explanation in the parentheses was for the PATH not the QUERY portion. Therefore I moved that explanation next to the mention of PATH. I also added a second parenthetical explanation for the QUERY portion.
This commit is contained in:
Gurinder Singh 2018-10-28 08:24:05 +05:30 committed by GitHub
parent 9286357d2d
commit 36de480a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,9 +20,9 @@ a particular handler object is invoked.
Resource configuration is the act of adding a new resources to an application. Resource configuration is the act of adding a new resources to an application.
A resource has a name, which acts as an identifier to be used for URL generation. A resource has a name, which acts as an identifier to be used for URL generation.
The name also allows developers to add routes to existing resources. The name also allows developers to add routes to existing resources.
A resource also has a pattern, meant to match against the *PATH* portion of a *URL*. A resource also has a pattern, meant to match against the *PATH* portion of a *URL* (the portion following the scheme and
It does not match against the *QUERY* portion (the portion following the scheme and port, e.g. */foo/bar* in the *URL* *http://localhost:8080/foo/bar?q=value*).
port, e.g., */foo/bar* in the *URL* *http://localhost:8080/foo/bar?q=value*). It does not match against the *QUERY* portion (the portion that follows *?*, e.g. *q=value* in *http://localhost:8080/foo/bar?q=value*).
The [*App::route()*](../../actix-web/actix_web/struct.App.html#method.route) method provides The [*App::route()*](../../actix-web/actix_web/struct.App.html#method.route) method provides
simple way of registering routes. This method adds a single route to application simple way of registering routes. This method adds a single route to application