tiscaf
package tiscaf
- Alphabetic
- Public
- All
Type Members
-
trait
HApp extends AnyRef
An application is a group of request handlers (tiscaf.HLets) sharing common behaviour.
-
trait
HLet extends AnyRef
Handles an HTTP request and makes some computation that wil eventually termintate .
-
trait
HLoggable extends AnyRef
The tiscaf logging API, used by tiscaf itself to log internal information.
The tiscaf logging API, used by tiscaf itself to log internal information. It is not intended to be used by applications using tiscaf but allows for people to change the implementation by their favorite logging API. By default, messages are logged to stdout and stderr.
The method names used do not imply that, let's say, a warning from the server internals must be a warning in the application logic. It may simply be ignored in production code and be treated as a debug message (for example, the post data was too big). The semantics of
info
,wraning
anderror
is from the Http(s) connection and request handling point of view, not necessarily from an applicative point of view. - trait HPartDescriptor extends AnyRef
-
abstract
class
HPartsAcceptor extends AnyRef
Accepts uploaded files with POST multiparts method.
-
trait
HReqData extends AnyRef
Request data contains following elements:
Request data contains following elements:
- sent headers,
- request method, host, port, ...
- request parameters
- sent bytes (in case of a POST/application/octet-stream request).
-
trait
HReqHeaderData extends AnyRef
Contains the request header data:
Contains the request header data:
- request method,
- host, port, ...
- sent headers.
-
trait
HServer extends HLoggable
A server provides:
A server provides:
- few common settings,
- list of tiscaf.HApplications,
- start/stop methods
-
trait
HSimpleLet extends HLet
A simple non suspendable tiscaf.HLet
-
trait
HSslContext extends AnyRef
tiscaf SSL context.
tiscaf SSL context. It manages the session cache as well as SSL settings.
- final class HStop extends AnyRef
-
trait
HSuspendable extends AnyRef
This computation may potentially be suspended at any moment and several times by calling the tiscaf.HSuspendableLet#suspend methods.
This computation may potentially be suspended at any moment and several times by calling the tiscaf.HSuspendableLet#suspend methods. The computation will be resumed at this point when the tiscaf.HLet#resume method is called. The data passed to the
resume
method is returned by thesuspend
call. -
final
class
HTalk extends AnyRef
This is the way an tiscaf.HLet accesses to the world.
This is the way an tiscaf.HLet accesses to the world. It provides a way to access the request data, as well as a way to send response to the client.
- Note
if the response is not chunked, nor buffered (e.g. gzipped), implementor must set the response length explicitly.
-
trait
HTree extends AnyRef
If your application has (at least partly) tree-like structure (URI nodes correspond to request handlers), you can assign handlers to tree nodes in eyes-friendly manner:
If your application has (at least partly) tree-like structure (URI nodes correspond to request handlers), you can assign handlers to tree nodes in eyes-friendly manner:
object MngApp extends HApp { def resolve(req: HReqHeaderData): Option[HLet] = admRoot.resolve(req.uriPath) private lazy val bookkeepers = "bookkeeper" += ( "new" ! stub("new bookkeeper - not implemented yet"), "list" ! adm.bk.ListBkLet ) private lazy val admRoot = "adm" += ( // adm root hasn't a handler. If has: "adm" ! adm.RootLet += ( "in" ! adm.InLet, // "domain.com/adm/in" "menu" ! adm.MenuLet, "manager" += ( "new" ! adm.man.NewManLet, "list" ! adm.man.ListManLet ), bookkeepers ) // ... }
- class Suspended[T] extends AnyRef
Value Members
-
object
HClientAuth extends Enumeration
Indicates whether client authentication is accepted, required, or if none is needed.
-
object
HHeaderKeys
- Attributes
- protected
-
object
HMime
Known MIME types.
- object HReqData
-
object
HReqType extends Enumeration
Request method type.
- object HResponse
-
object
HStatus extends Enumeration
Response status codes.
- object HTracking extends Enumeration
- object HTree