1{-# LANGUAGE OverloadedStrings #-}
3import Network.Wai.Handler.Warp
4import Network.HTTP.Types (status200)
5import Blaze.ByteString.Builder (fromByteString)
6import qualified Data.Conduit as C
7import qualified Data.Conduit.List as CL
8import Control.Monad.IO.Class (liftIO)
11 - use `curl -H "Transfer-Encoding: chunked" estfile http://localhost:3000/` to send a chunked post request.
17 (requestBody req C.$$ CL.consume) >>= liftIO . print
18 return $ ResponseBuilder status200 [] (fromByteString "PONG")
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list