├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── Setup.hs ├── cabal.project ├── cabal.project.travis ├── example ├── README.md ├── greet.hs └── greet.md ├── pkgs └── hspec-snap.nix ├── servant-snap.cabal ├── shell.nix ├── snaplets └── heist │ └── templates │ └── test.tpl ├── src ├── Servant.hs └── Servant │ ├── Server.hs │ ├── Server │ ├── Internal.hs │ └── Internal │ │ ├── BasicAuth.hs │ │ ├── Context.hs │ │ ├── PathInfo.hs │ │ ├── Router.hs │ │ ├── RoutingApplication.hs │ │ ├── ServantErr.hs │ │ └── SnapShims.hs │ └── Utils │ └── StaticFiles.hs ├── stack.yaml ├── static └── test.txt └── test ├── Doctests.hs ├── Servant ├── Server │ └── CORSSpec.hs ├── ServerSpec.hs ├── StreamingSpec.hs └── Utils │ ├── SnapTestUtils.hs │ └── StaticFilesSpec.hs └── Spec.hs /.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/README.md -------------------------------------------------------------------------------- /Setup.hs: -------------------------------------------------------------------------------- 1 | import Distribution.Simple 2 | main = defaultMain 3 | -------------------------------------------------------------------------------- /cabal.project: -------------------------------------------------------------------------------- 1 | packages: ./*.cabal 2 | -------------------------------------------------------------------------------- /cabal.project.travis: -------------------------------------------------------------------------------- 1 | packages: deps/*, ./*.cabal 2 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/example/README.md -------------------------------------------------------------------------------- /example/greet.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/example/greet.hs -------------------------------------------------------------------------------- /example/greet.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/example/greet.md -------------------------------------------------------------------------------- /pkgs/hspec-snap.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/pkgs/hspec-snap.nix -------------------------------------------------------------------------------- /servant-snap.cabal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/servant-snap.cabal -------------------------------------------------------------------------------- /shell.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/shell.nix -------------------------------------------------------------------------------- /snaplets/heist/templates/test.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/snaplets/heist/templates/test.tpl -------------------------------------------------------------------------------- /src/Servant.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant.hs -------------------------------------------------------------------------------- /src/Servant/Server.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant/Server.hs -------------------------------------------------------------------------------- /src/Servant/Server/Internal.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant/Server/Internal.hs -------------------------------------------------------------------------------- /src/Servant/Server/Internal/BasicAuth.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant/Server/Internal/BasicAuth.hs -------------------------------------------------------------------------------- /src/Servant/Server/Internal/Context.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant/Server/Internal/Context.hs -------------------------------------------------------------------------------- /src/Servant/Server/Internal/PathInfo.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant/Server/Internal/PathInfo.hs -------------------------------------------------------------------------------- /src/Servant/Server/Internal/Router.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant/Server/Internal/Router.hs -------------------------------------------------------------------------------- /src/Servant/Server/Internal/RoutingApplication.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant/Server/Internal/RoutingApplication.hs -------------------------------------------------------------------------------- /src/Servant/Server/Internal/ServantErr.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant/Server/Internal/ServantErr.hs -------------------------------------------------------------------------------- /src/Servant/Server/Internal/SnapShims.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant/Server/Internal/SnapShims.hs -------------------------------------------------------------------------------- /src/Servant/Utils/StaticFiles.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/src/Servant/Utils/StaticFiles.hs -------------------------------------------------------------------------------- /stack.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/stack.yaml -------------------------------------------------------------------------------- /static/test.txt: -------------------------------------------------------------------------------- 1 | Hello from text file! 2 | -------------------------------------------------------------------------------- /test/Doctests.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/test/Doctests.hs -------------------------------------------------------------------------------- /test/Servant/Server/CORSSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/test/Servant/Server/CORSSpec.hs -------------------------------------------------------------------------------- /test/Servant/ServerSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/test/Servant/ServerSpec.hs -------------------------------------------------------------------------------- /test/Servant/StreamingSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/test/Servant/StreamingSpec.hs -------------------------------------------------------------------------------- /test/Servant/Utils/SnapTestUtils.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/test/Servant/Utils/SnapTestUtils.hs -------------------------------------------------------------------------------- /test/Servant/Utils/StaticFilesSpec.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/haskell-servant/servant-snap/HEAD/test/Servant/Utils/StaticFilesSpec.hs -------------------------------------------------------------------------------- /test/Spec.hs: -------------------------------------------------------------------------------- 1 | {-# OPTIONS_GHC -F -pgmF hspec-discover #-} 2 | --------------------------------------------------------------------------------