Search code examples
haskellhaskell-snap-framework

Change Snap server parameters


I have created a project using

snap init barebones

Is there a way to turn logging on/off and examine or set any server parameters?


Solution

  • I think you're looking for the module Snap.Http.Server.Config. You can create a specialized Config using the functions from there, then pass them into a call to simpleHttpServe from Snap.Http.Server to start a server with your custom options.