Skip to content

Commit

Permalink
Merge pull request #8 from RobertGrubb/router-v2
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
RobertGrubb authored Jun 11, 2020
2 parents 0106186 + f03f334 commit 3c85331
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,16 @@ $req->post() // Gets all $_POST variables
$req->get() // Gets all $_GET variables
```

Getting parameters from the URL:

```
// Returns false if it doesn't exist.
$req->param('id')
// Gets all parameters in object form
$req->params;
```

Getting headers from the request

```
Expand Down

0 comments on commit 3c85331

Please sign in to comment.