From ac9b8541dce64feff9b53b700cab8496c1816651 Mon Sep 17 00:00:00 2001 From: Patitotective Date: Mon, 11 Dec 2023 11:05:23 -0500 Subject: [PATCH] Fix deprecated types in Request --- readme.markdown | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/readme.markdown b/readme.markdown index 9c18daf..c3f3997 100644 --- a/readme.markdown +++ b/readme.markdown @@ -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 @@ -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 @@ -211,4 +211,3 @@ routes: var push = parseJson(@"payload") resp "I got some JSON: " & $push ``` -