hprox-0.5.0: a lightweight HTTP proxy server, and more
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.HProx

Description

Instead of running hprox binary directly, you can use this library to run HProx in front of arbitrary WAI Application.

Synopsis

Documentation

data CertFile Source #

Certificate file pairs

Constructors

CertFile 

data Config Source #

Configuration of HProx, see hprox --help for details

defaultConfig :: Config Source #

Default value of Config, same as running hprox without arguments

getConfig :: IO Config Source #

Read Config from command line arguments

run Source #

Arguments

:: Application

fallback application

-> Config

configuration

-> IO () 

Run HProx in front of fallback Application, with specified Config