Skip to content

Commit ac9b854

Browse files
Patitotectivedom96
authored andcommitted
Fix deprecated types in Request
1 parent e532340 commit ac9b854

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

readme.markdown

+3-4
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Request* = ref object
159159
## instead.
160160
headers*: StringTableRef ## Headers received with the request.
161161
## Retrieving these is case insensitive.
162-
formData*: TMultiData ## Form data; only present for
162+
formData*: MultiData ## Form data; only present for
163163
## multipart/form-data
164164
port*: int
165165
host*: string
@@ -172,8 +172,8 @@ Request* = ref object
172172
query*: string ## Query string of request.
173173
cookies*: StringTableRef ## Cookies from the browser.
174174
ip*: string ## IP address of the requesting client.
175-
reqMeth*: TReqMeth ## Request method, eg. HttpGet, HttpPost
176-
settings*: PSettings
175+
reqMeth*: HttpMethod ## Request method, eg. HttpGet, HttpPost
176+
settings*: Settings
177177
```
178178

179179
## Examples
@@ -211,4 +211,3 @@ routes:
211211
var push = parseJson(@"payload")
212212
resp "I got some JSON: " & $push
213213
```
214-

0 commit comments

Comments
 (0)