Safe Haskell | Safe-Inferred |
---|
Parameters of HTTP.
- data Method
- toMethod :: ByteString -> Method
- data Version
- toVersion :: ByteString -> Version
- fromVersion :: Version -> ByteString
- data Status
- = Continue
- | SwitchingProtocols
- | OK
- | Created
- | Accepted
- | NonAuthoritativeInformation
- | NoContent
- | ResetContent
- | PartialContent Integer Integer
- | MultipleChoices
- | MovedPermanently
- | Found
- | SeeOther
- | NotModified
- | UseProxy
- | TemporaryRedirect
- | BadRequest
- | Unauthorized
- | PaymentRequired
- | Forbidden
- | NotFound
- | MethodNotAllowed
- | NotAcceptable
- | ProxyAuthenticationRequired
- | RequestTimeout
- | Conflict
- | Gone
- | LengthRequired
- | PreconditionFailed
- | RequestEntityTooLarge
- | RequestURITooLarge
- | UnsupportedMediaType
- | RequestedRangeNotSatisfiable
- | ExpectationFailed
- | InternalServerError
- | NotImplemented
- | BadGateway
- | ServiceUnavailable
- | GatewayTimeout
- | HTTPVersionNotSupported
- toStatus :: ByteString -> Maybe Status
- fromStatus :: Status -> ByteString
- badStatus :: Status -> Bool
- data Persist
- = Close
- | Keep
- | PerUnknown
- toPersist :: ByteString -> Persist
- fromPersist :: Persist -> ByteString
- data ServerException
- data FieldKey
- = FkAccept
- | FkAcceptLanguage
- | FkCacheControl
- | FkConnection
- | FkContentLength
- | FkContentRange
- | FkContentType
- | FkCookie
- | FkDate
- | FkHost
- | FkIfModifiedSince
- | FkIfRange
- | FkIfUnmodifiedSince
- | FkLastModified
- | FkLocation
- | FkRange
- | FkServer
- | FkSetCookie2
- | FkStatus
- | FkTransferEncoding
- | FkAcceptEncoding
- | FkContentEncoding
- | FkOther ByteString
- type FieldValue = ByteString
- toFieldKey :: ByteString -> FieldKey
- fromFieldKey :: FieldKey -> ByteString
- type CT = ByteString
- textHtml :: CT
- selectContentType :: String -> CT
Documentation
Methods of HTTP.
toMethod :: ByteString -> MethodSource
toVersion :: ByteString -> VersionSource
Status of HTTP.
fromStatus :: Status -> ByteStringSource
The type for persist connection or not
toPersist :: ByteString -> PersistSource
data ServerException Source
Exceptions for Web server
Field key of HTTP header.
type FieldValue = ByteStringSource
Field value of HTTP header.
toFieldKey :: ByteString -> FieldKeySource
Converting field key to FieldKey
.
fromFieldKey :: FieldKey -> ByteStringSource
Converting FieldKey
to field key.
type CT = ByteStringSource
The type for Content-Type.
selectContentType :: String -> CTSource
Selecting a value of Content-Type from a file suffix.