summaryrefslogtreecommitdiff
path: root/Network/HTTP/Simple.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Network/HTTP/Simple.hs')
-rw-r--r--Network/HTTP/Simple.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Network/HTTP/Simple.hs b/Network/HTTP/Simple.hs
index 18789a7..8099a4d 100644
--- a/Network/HTTP/Simple.hs
+++ b/Network/HTTP/Simple.hs
@@ -28,6 +28,7 @@ module Network.HTTP.Simple
, httpSource
, withResponse
-- * Types
+ , H.Query
, H.Request
, H.Response
, JSONException (..)
@@ -311,13 +312,13 @@ setRequestHeaders x req = req { H.requestHeaders = x }
-- | Get the query string parameters
--
-- @since 2.1.10
-getRequestQueryString :: H.Request -> [(S.ByteString, Maybe S.ByteString)]
+getRequestQueryString :: H.Request -> H.Query
getRequestQueryString = H.parseQuery . H.queryString
-- | Set the query string parameters
--
-- @since 2.1.10
-setRequestQueryString :: [(S.ByteString, Maybe S.ByteString)] -> H.Request -> H.Request
+setRequestQueryString :: H.Query -> H.Request -> H.Request
setRequestQueryString = H.setQueryString
-- | Set the request body to the given 'H.RequestBody'. You may want to