mirror of
https://github.com/typeable/wai.git
synced 2025-01-08 15:37:19 +03:00
adding doctests.
This commit is contained in:
parent
e087d4349a
commit
9e5f743761
@ -32,6 +32,12 @@ parseHeaderLines (firstLine:otherLines) = do
|
||||
|
||||
----------------------------------------------------------------
|
||||
|
||||
-- |
|
||||
--
|
||||
-- >>> parseRequestLine "GET / HTTP/1.1"
|
||||
-- ("GET","/","",HTTP/1.1)
|
||||
-- >>> parseRequestLine "POST /cgi/search.cgi?key=foo HTTP/1.0"
|
||||
-- ("POST","/cgi/search.cgi","?key=foo",HTTP/1.0)
|
||||
parseRequestLine :: ByteString
|
||||
-> IO (ByteString, ByteString, ByteString, H.HttpVersion)
|
||||
parseRequestLine s =
|
||||
|
Loading…
Reference in New Issue
Block a user