Set package:happstack-server

A monoid operation container. If a is a monoid, then SetAppend is a monoid with the following behaviors:
Set    x `mappend` Append y = Set    (x `mappend` y)
Append x `mappend` Append y = Append (x `mappend` y)
_        `mappend` Set y    = Set y
A simple way of summarizing this is, if the right side is Append, then the right is appended to the left. If the right side is Set, then the left side is ignored.
Ignores all previous alterations to your filter As an example:
do
composeFilter f
setFilter g
return "Hello World"
The setFilter g will cause the first composeFilter f to be ignored.
Associates the key/value pair in the headers. Forces the key to be lowercase.
Acts as setHeader but with ByteStrings.
Sets the key to the HeaderPair. This is the only way to associate a key with multiple values via the setHeader* functions. Does not force the key to be in lowercase or guarantee that the given key and the key in the HeaderPair will match.
Sets the Response status code to the provided Int and lifts the computation into a Monad.
Set a header into the response. This will replace an existing header of the same name. Use addHeaderM if you want to add more than one header of the same name.
Set an arbitrary return code in your response. A filter for setting the response code. Generally you will use a helper function like ok or seeOther.
main = simpleHTTP nullConf $ do setResponseCode 200
return "Everything is OK"
see also: resp
Set the validator which should be used for this particular Response when validation is enabled. Calling this function does not enable validation. That can only be done by enabling the validation in the Conf that is passed to simpleHTTP. You do not need to call this function if the validator set in Conf does what you want already. Example: (use noopValidator instead of the default supplied by validateConf)
simpleHTTP validateConf $ ok . setValidator noopValidator =<< htmlPage
See also: validateConf, wdgHTMLValidator, noopValidator, lazyProcValidator.
ServerPart version of setValidator. Example: (Set validator to noopValidator)
simpleHTTP validateConf $ setValidatorSP noopValidator (dir "ajax" ... )
offset to start at