haskell-warp Questions

1

Warp has a settingsMaxTotalHeaderLength field which by default is 50*1024 : https://hackage.haskell.org/package/warp-3.3.10/docs/src/Network.Wai.Handler.Warp.Settings.html#defaultSettings I suppose...
Chalmer asked 22/7, 2020 at 13:22

2

Solved

Is there a way to start a http server to serve static files right from shell using ghc -e or runhaskell ?
Simper asked 17/10, 2014 at 8:35

1

Solved

I have an HTTP application server that needs to exit when handling a certain request under certain conditions (in order to be restarted by a supervisor). Given a main like: import Network.Wai.Han...
Sopping asked 23/8, 2017 at 12:38

2

Solved

The example code listed here shows how to make warp listen only on specific hosts. Furtheremore, this post shows some basics on how to use unix domain sockets in Haskell. How can I combine those ...
Lizliza asked 24/3, 2014 at 22:8

1

Solved

I have a basic hello-world application in Haskell Servant and Warp. This is not real code but for the sake of simplicity let's say I'm using it: import Network.Wai import Network.Wai.Handler.Warp ...
Carpo asked 17/4, 2016 at 11:17

1

Solved

This is my scotty app, notice how I am logging requests to the console: {-# LANGUAGE OverloadedStrings #-} import Web.Scotty import Network.Wai.Middleware.RequestLogger import Data.Monoid (mconca...
Tempera asked 27/8, 2014 at 21:47

2

Solved

Consider the simplest scotty app: {-# LANGUAGE OverloadedStrings #-} import Web.Scotty import Data.Monoid (mconcat) main = scotty 3000 $ do get "/:word" $ do beam <- param "word" html $ mc...
Flung asked 27/8, 2014 at 15:46

2

Solved

When running a warp application using run, it listens on all IP adresses. For security reasons, I want to listen on localhost only, handling remote access using a reverse proxy. How do I need to ...
Ciri asked 24/3, 2014 at 21:7

1

Solved

I want to create a website using the Warp webserver in Haskell. As I'm a Haskell beginner, examples like this one are too complex for me. Can anyone show me a simple, minimal example of how to us...
Myel asked 24/3, 2014 at 20:49

2

Solved

How do you retrieve data from a POST request using Network.Wai and Warp? Say for example, I have a simple webpage .... <form method="POST" action="/handlepost"> <input name="name" type=...
Otorhinolaryngology asked 14/9, 2011 at 21:0
1

© 2022 - 2024 — McMap. All rights reserved.