HTTP 4000.4.0 → 4000.4.1
raw patch · 6 files changed
+9/−9 lines, 6 filesdep ~Win32dep ~basedep ~bytestringPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: Win32, base, bytestring, deepseq, mtl, network, time
API changes (from Hackage documentation)
Files
- HTTP.cabal +2/−2
- Network/Browser.hs +3/−3
- Network/HTTP/Base.hs +1/−1
- Network/HTTP/MD5Aux.hs +1/−1
- Network/StreamSocket.hs +1/−1
- test/httpTests.hs +1/−1
HTTP.cabal view
@@ -1,6 +1,6 @@ Cabal-Version: >= 1.10 Name: HTTP-Version: 4000.4.0+Version: 4000.4.1 Build-type: Simple License: BSD3 License-file: LICENSE@@ -118,7 +118,7 @@ -- transformers-0.2.0.0 is the first to have Control.Monad.IO.Class -- The following dependencies are refined by flags, but they should -- still be mentioned here on the top-level.- , mtl >= 2.0.0.0 && < 2.3+ , mtl >= 2.0.0.0 && < 2.4 , network >= 2.4 && < 3.2 default-language: Haskell98
Network/Browser.hs view
@@ -307,7 +307,7 @@ getAllowBasicAuth = gets bsAllowBasicAuth -- | @setMaxAuthAttempts mbMax@ sets the maximum number of authentication attempts--- to do. If @Nothing@, rever to default max.+-- to do. If @Nothing@, revert to default max. setMaxAuthAttempts :: Maybe Int -> BrowserAction t () setMaxAuthAttempts mb | fromMaybe 0 mb < 0 = return ()@@ -515,7 +515,7 @@ getAllowRedirects :: BrowserAction t Bool getAllowRedirects = gets bsAllowRedirects --- | @setMaxRedirects maxCount@ sets the maxiumum number of forwarding hops+-- | @setMaxRedirects maxCount@ sets the maximum number of forwarding hops -- we are willing to jump through. A no-op if the count is negative; if zero, -- the max is set to whatever default applies. Notice that setting the max -- redirects count does /not/ enable following of redirects itself; use@@ -600,7 +600,7 @@ -- A common form of user agent string is @\"name\/version (details)\"@. For -- example @\"cabal-install/0.10.2 (HTTP 4000.1.2)\"@. Including the version -- of this HTTP package can be helpful if you ever need to track down HTTP--- compatability quirks. This version is available via 'httpPackageVersion'.+-- compatibility quirks. This version is available via 'httpPackageVersion'. -- For more info see <http://en.wikipedia.org/wiki/User_agent>. -- setUserAgent :: String -> BrowserAction t ()
Network/HTTP/Base.hs view
@@ -332,7 +332,7 @@ type ResponseData = (ResponseCode,String,[Header]) -- | @RequestData@ contains the head of a HTTP request; method,--- its URL along with the auxillary/supporting header data.+-- its URL along with the auxiliary/supporting header data. type RequestData = (RequestMethod,URI,[Header]) -- | An HTTP Response.
Network/HTTP/MD5Aux.hs view
@@ -106,7 +106,7 @@ md5 m = md5_main False 0 magic_numbers m --- Returns a hex number ala the md5sum program+-- Returns a hex number à la md5sum program md5s :: (MD5 a) => a -> String md5s = abcd_to_string . md5
Network/StreamSocket.hs view
@@ -17,7 +17,7 @@ -- - Created separate module for instance Stream Socket. -- -- * Changes by Simon Foster:--- - Split module up into to sepearate Network.[Stream,TCP,HTTP] modules+-- - Split module up into to separate Network.[Stream,TCP,HTTP] modules -- ----------------------------------------------------------------------------- module Network.StreamSocket
test/httpTests.hs view
@@ -147,7 +147,7 @@ return (take 100 (rspBody rsp)) assertEqual "Receiving expected response" (take 100 haskellOrgText) result --- A vanilla HTTP request using Browser shouln't send a cookie header+-- A vanilla HTTP request using Browser shouldn't send a cookie header browserNoCookie :: (?testUrl :: ServerAddress) => Assertion browserNoCookie = do (_, response) <- browse $ do