Monad m => String -> m a
Parse the standard representation of a content-type. If the input cannot be parsed, this function calls fail with a (hopefully) informative error message.
Throw an IOError corresponding to the current socket error.
error stops execution and displays an error message.
The foldM function is analogous to foldl, except that its result is encapsulated in a monad. Note that foldM works from left-to-right over the list arguments. This could be an issue
> foldM f a1 [x1, x2, ..., xm]
> a2 <- f a1 x1
> a3 <- f a2 x2
> f am xm
If right-to-left evaluation is required, the input list should be reversed.
option requires argument
Like throwSocketError, but the error code is supplied as an argument.
On Windows, do not use errno. Use a system error code instead.
The parse failed at the specified source location, with an error message.
setRequestVersion v req returns a new request, identical to req, but with its HTTP version set to v.
setResponseVersion v rsp returns a new response, identical to rsp, but with its HTTP version set to v.
When called, trace outputs the string in its first argument, before returning the second argument as its result. The trace function is not referentially transparent, and should only be used for debugging, or for monitoring execution. Some implementations of trace may decorate the string that's output to indicate that you're tracing. The function is implemented on top of putTraceMsg.
Show more results