Advertisement
Guest User

Untitled

a guest
Mar 1st, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. TRequest* = object
  2. params*: PStringTable ## Parameters from the pattern, but also the
  3. ## query string.
  4. matches*: array[0..9, string] ## Matches if this is a regex pattern.
  5. body*: string ## Body of the request, only for POST.
  6. ## You're probably looking for ``formData`` instead.
  7. headers*: PStringTable ## Headers received with the request. Retrieving these is case insensitive.
  8. formData*: TMultiData ## Form data; only present for multipart/form-data
  9. port*: int
  10. host*: string
  11. appName*: string ## This is set by the user in ``run``, it is overriden by the "SCRIPT_NAME" scgi parameter.
  12. pathInfo*: string ## This is ``.path`` without ``.appName``.
  13. secure*: bool
  14. path*: string ## Path of request.
  15. cookies*: PStringTable ## Cookies from the browser.
  16. ip*: string ## IP address of the requesting client.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement