Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
swhitty committed Jul 13, 2024
1 parent 7f79e69 commit 1860502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ route ~= HTTPRequest(method: .GET, path: "/hello/dog/world") // true
route ~= HTTPRequest(method: .GET, path: "/hello/fish/sea") // false
```

Routes can include named [parameters](#route-parameters) that match like wildcards, allowing the values to be extracted from the request.
Routes can include named [parameters](#route-parameters) that match like wildcards, while allowing their value to be extracted from the request.

```swift
let route = HTTPRoute("GET /hello/:beast/world")
Expand Down Expand Up @@ -291,7 +291,7 @@ let route = HTTPRoute("POST *", body: .json(where: "food == 'fish'"))

## Route Parameters

Handlers can extract any matched `HTTPRouteParameterValue` from value from the request:
Handlers can extract any matched `HTTPRouteParameterValue` from a `HTTPRequest` path and or query items:

```swift
enum Beast: String, HTTPRouteParameterValue {
Expand Down

0 comments on commit 1860502

Please sign in to comment.