Skip to content

Commit

Permalink
Fix deprecated types in Request
Browse files Browse the repository at this point in the history
  • Loading branch information
Patitotective authored and dom96 committed Dec 11, 2023
1 parent e532340 commit ac9b854
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Request* = ref object
## instead.
headers*: StringTableRef ## Headers received with the request.
## Retrieving these is case insensitive.
formData*: TMultiData ## Form data; only present for
formData*: MultiData ## Form data; only present for
## multipart/form-data
port*: int
host*: string
Expand All @@ -172,8 +172,8 @@ Request* = ref object
query*: string ## Query string of request.
cookies*: StringTableRef ## Cookies from the browser.
ip*: string ## IP address of the requesting client.
reqMeth*: TReqMeth ## Request method, eg. HttpGet, HttpPost
settings*: PSettings
reqMeth*: HttpMethod ## Request method, eg. HttpGet, HttpPost
settings*: Settings
```

## Examples
Expand Down Expand Up @@ -211,4 +211,3 @@ routes:
var push = parseJson(@"payload")
resp "I got some JSON: " & $push
```

0 comments on commit ac9b854

Please sign in to comment.