hprox-0.6.2: 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

data LogLevel Source #

Logging level, default value is INFO

Constructors

TRACE 
DEBUG 
INFO 
WARN 
ERROR 
NONE 

Instances

Instances details
Show LogLevel Source # 
Instance details

Defined in Network.HProx.Log

Eq LogLevel Source # 
Instance details

Defined in Network.HProx.Log

Ord LogLevel Source # 
Instance details

Defined in Network.HProx.Log

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