Skip to content

Commit

Permalink
Add managerSetMaxHeaderLength to Client interface
Browse files Browse the repository at this point in the history
  • Loading branch information
towards-a-new-leftypol committed Jan 21, 2024
1 parent a1c5e34 commit a32d92f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions http-client/Network/HTTP/Client.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ module Network.HTTP.Client
, managerSetProxy
, managerSetInsecureProxy
, managerSetSecureProxy
, managerSetMaxHeaderLength
, ProxyOverride
, proxyFromRequest
, noProxy
Expand Down Expand Up @@ -320,6 +321,10 @@ managerSetSecureProxy po m = m { managerProxySecure = po }
managerSetProxy :: ProxyOverride -> ManagerSettings -> ManagerSettings
managerSetProxy po = managerSetInsecureProxy po . managerSetSecureProxy po

managerSetMaxHeaderLength :: Int -> ManagerSettings -> ManagerSettings
managerSetMaxHeaderLength l manager = manager
{ managerMaxHeaderLength = Just $ MaxHeaderLength l }

-- $example1
-- = Example Usage
--
Expand Down

0 comments on commit a32d92f

Please sign in to comment.