Package
This package includes all the support functions necessary to build client applications for the HTTP protocol.
The important interfaces an application needs to deal with are:
-
HTTPSession, the API to an HTTP connection.
-
HTTPHandler, the interface to a handler you need to write that will receive notifications from the
HTTPSession
. -
HandlerFactory, the interface to a class you need to write that creates instances of your
HTTPHandler
. -
Payload, the class that represents a single HTTP message, with its headers.
If you are writing a client, you will need to deal with the HTTPClient class.
If you are writing a server, you should look at the Server class in the http_server package.
Public Types¶
- primitive AuthFailed
- primitive ChunkedTransfer
- primitive ConnectFailed
- primitive ConnectionClosed
- class HTTPClient
- type HTTPFailureReason
- interface HTTPHandler
- class HTTPParser
- trait HTTPSession
- interface HandlerFactory
- primitive MimeTypes
- primitive OneshotTransfer
- primitive ParseError
- class Payload
- trait Status
- primitive StatusAccepted
- primitive StatusBadGateway
- primitive StatusBadRequest
- primitive StatusConflict
- primitive StatusContinue
- primitive StatusCreated
- primitive StatusExpectationFailed
- primitive StatusForbidden
- primitive StatusFound
- primitive StatusGatewayTimeout
- primitive StatusGone
- primitive StatusHTTPVersionNotSupported
- primitive StatusInternalServerError
- primitive StatusLengthRequired
- primitive StatusMethodNotAllowed
- primitive StatusMovedPermanently
- primitive StatusMultipleChoices
- primitive StatusNetworkAuthenticationRequired
- primitive StatusNoContent
- primitive StatusNonAuthoritativeInfo
- primitive StatusNotAcceptable
- primitive StatusNotFound
- primitive StatusNotImplemented
- primitive StatusNotModified
- primitive StatusOK
- primitive StatusPartialContent
- primitive StatusPaymentRequired
- primitive StatusPreconditionFailed
- primitive StatusPreconditionRequired
- primitive StatusProxyAuthRequired
- primitive StatusRequestEntityTooLarge
- primitive StatusRequestHeaderFieldsTooLarge
- primitive StatusRequestTimeout
- primitive StatusRequestURITooLong
- primitive StatusRequestedRangeNotSatisfiable
- primitive StatusResetContent
- primitive StatusSeeOther
- primitive StatusServiceUnavailable
- primitive StatusSwitchingProtocols
- primitive StatusTeapot
- primitive StatusTemporaryRedirect
- primitive StatusTooManyRequests
- primitive StatusUnauthorized
- primitive StatusUnavailableForLegalReasons
- primitive StatusUnsupportedMediaType
- primitive StatusUseProxy
- primitive StreamTransfer
- type TransferMode
- class URL
- primitive URLEncode
- type URLPart
- primitive URLPartFragment
- primitive URLPartHost
- primitive URLPartPassword
- primitive URLPartPath
- primitive URLPartQuery
- primitive URLPartUser