1
0
mirror of https://github.com/actix/actix-website synced 2025-01-23 00:25:55 +01:00

Merge pull request #57 from gurry/patch-3

Fixed the location of a parenthetical comment
This commit is contained in:
Nikolay Kim 2018-10-28 09:02:13 -07:00 committed by GitHub
commit 4c879892a6
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