Expose original request url as a part of Request (#155)

This commit is contained in:
paluh 2020-03-09 16:34:04 +01:00 committed by GitHub
parent 61b88de59b
commit 896956b762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ type Request =
, headers :: Headers.Headers
, body :: String
, httpVersion :: Version.Version
, url :: String
}
-- | Return the full resolved path, including query parameters. This may not
@ -54,4 +55,5 @@ fromHTTPRequest request = do
, headers: Headers.read request
, body
, httpVersion: Version.read request
, url: HTTP.requestURL request
}