packages feed

http-reverse-proxy 0.4.1.2 → 0.4.1.3

raw patch · 3 files changed

+28/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

+ ChangeLog.md view
@@ -0,0 +1,3 @@+## 0.4.1.3++* Include README.md and ChangeLog.md
+ README.md view
@@ -0,0 +1,23 @@+http-reverse-proxy+==================++Provides a simple means of reverse-proxying HTTP requests. The raw approach+uses the same technique as leveraged by keter, whereas the WAI approach+performs full request/response parsing via WAI and http-conduit.++## Raw example++The following sets up raw reverse proxying from local port 3000 to+www.example.com, port 80.++```haskell+{-# LANGUAGE OverloadedStrings #-}+import Network.HTTP.ReverseProxy+import Data.Conduit.Network++main :: IO ()+main = runTCPServer (serverSettings 3000 "*") $ \appData ->+    rawProxyTo+        (\_headers -> return $ Right $ ProxyDest "www.example.com" 80)+        appData+```
http-reverse-proxy.cabal view
@@ -1,5 +1,5 @@ name:                http-reverse-proxy-version:             0.4.1.2+version:             0.4.1.3 synopsis:            Reverse proxy HTTP requests, either over raw sockets or with WAI description:         Provides a simple means of reverse-proxying HTTP requests. The raw approach uses the same technique as leveraged by keter, whereas the WAI approach performs full request/response parsing via WAI and http-conduit. homepage:            https://github.com/fpco/http-reverse-proxy@@ -10,6 +10,7 @@ category:            Web build-type:          Simple cabal-version:       >=1.8+extra-source-files:  README.md ChangeLog.md  library   exposed-modules:     Network.HTTP.ReverseProxy