@@ -168,6 +168,7 @@ type FailApi =
168 "get" :> Raw
168 "get" :> Raw
169 :<|> "capture" :> Capture "name" String :> Raw
169 :<|> "capture" :> Capture "name" String :> Raw
170 :<|> "body" :> Raw
170 :<|> "body" :> Raw
171+ :<|> "headers" :> Raw
171failApi :: Proxy FailApi
172failApi :: Proxy FailApi
172failApi = Proxy
173failApi = Proxy
@@ -176,6 +177,7 @@ failServer = serve failApi (
176 (Tagged $ \ _request respond -> respond $ Wai.responseLBS HTTP.ok200 [] "")
177 (Tagged $ \ _request respond -> respond $ Wai.responseLBS HTTP.ok200 [] "")
177 :<|> (\ _capture -> Tagged $ \_request respond -> respond $ Wai.responseLBS HTTP.ok200 [("content-type", "application/json")] "")
178 :<|> (\ _capture -> Tagged $ \_request respond -> respond $ Wai.responseLBS HTTP.ok200 [("content-type", "application/json")] "")
178 :<|> (Tagged $ \_request respond -> respond $ Wai.responseLBS HTTP.ok200 [("content-type", "fooooo")] "")
179 :<|> (Tagged $ \_request respond -> respond $ Wai.responseLBS HTTP.ok200 [("content-type", "fooooo")] "")
180+ :<|> (Tagged $ \_request respond -> respond $ Wai.responseLBS HTTP.ok200 [("content-type", "application/x-www-form-urlencoded"), ("X-Example1", "1"), ("X-Example2", "foo")] "")
181-- * basic auth stuff
183-- * basic auth stuff