From 1d0b92f3186debe14004fb72d6969d446e314c23 Mon Sep 17 00:00:00 2001 From: Ruslan Lopatin Date: Sun, 17 Sep 2023 15:30:17 +0700 Subject: [PATCH] Updates --- classes/_hatsy_hatsy.HttpError-1.html | 14 +++++------ classes/_hatsy_hatsy.RequestCapability-1.html | 12 +++++----- ...tsy_hatsy_testing_js.TestHttpServer-1.html | 24 +++++++++---------- functions/_hatsy_hatsy.addResponseHeader.html | 2 +- .../_hatsy_hatsy.dispatchByAccepted.html | 2 +- .../_hatsy_hatsy.dispatchByLanguage.html | 2 +- functions/_hatsy_hatsy.dispatchByMethod.html | 2 +- functions/_hatsy_hatsy.dispatchError.html | 2 +- functions/_hatsy_hatsy.httpListener.html | 6 ++--- functions/_hatsy_hatsy.middleware-2.html | 2 +- functions/_hatsy_hatsy.renderHttpError.html | 2 +- functions/_hatsy_hatsy.requestExtension.html | 2 +- functions/_hatsy_hatsy.requestHandler-1.html | 2 +- .../_hatsy_hatsy.requestProcessor-2.html | 2 +- functions/_hatsy_hatsy.requestUpdate.html | 2 +- index.html | 16 ++++++------- .../_hatsy_hatsy.DispatchLanguages.html | 6 ++--- interfaces/_hatsy_hatsy.DispatchMethods.html | 16 ++++++------- .../_hatsy_hatsy.DispatchMimeTypes.html | 8 +++---- interfaces/_hatsy_hatsy.ErrorMeans.html | 4 ++-- interfaces/_hatsy_hatsy.FormDecoding.html | 10 ++++---- interfaces/_hatsy_hatsy.HttpConfig-1.html | 10 ++++---- .../_hatsy_hatsy.HttpConfig.Extended.html | 10 ++++---- .../_hatsy_hatsy.HttpError.Options.html | 8 +++---- interfaces/_hatsy_hatsy.HttpForwarding.html | 10 ++++---- interfaces/_hatsy_hatsy.HttpMeans-1.html | 10 ++++---- .../_hatsy_hatsy.HttpMeans.Addresses.html | 6 ++--- interfaces/_hatsy_hatsy.JsonParsing.html | 10 ++++---- interfaces/_hatsy_hatsy.LoggerMeans.html | 4 ++-- interfaces/_hatsy_hatsy.Logging.html | 10 ++++---- interfaces/_hatsy_hatsy.RenderMeans.html | 8 +++---- interfaces/_hatsy_hatsy.RequestBodyMeans.html | 4 ++-- .../_hatsy_hatsy.RequestContext.Agent.html | 4 ++-- interfaces/_hatsy_hatsy.RequestLogger.html | 12 +++++----- .../_hatsy_hatsy.RequestProcessor.Config.html | 6 ++--- ...sy_testing_js.TestHttpServer.Response.html | 4 ++-- modules/_hatsy_hatsy.HttpConfig.html | 4 ++-- modules/_hatsy_hatsy.HttpError.html | 4 ++-- modules/_hatsy_hatsy.HttpMeans.html | 4 ++-- modules/_hatsy_hatsy.Middleware.html | 4 ++-- modules/_hatsy_hatsy.RequestCapability.html | 4 ++-- modules/_hatsy_hatsy.RequestContext.html | 4 ++-- modules/_hatsy_hatsy.RequestProcessor.html | 4 ++-- modules/_hatsy_hatsy.html | 2 +- modules/_hatsy_hatsy_core_js.html | 2 +- ...hatsy_hatsy_testing_js.TestHttpServer.html | 4 ++-- modules/_hatsy_hatsy_testing_js.html | 2 +- types/_hatsy_hatsy.Middleware-1.html | 4 ++-- types/_hatsy_hatsy.Middleware.Next.html | 2 +- ...atsy_hatsy.RequestCapability.Provider.html | 2 +- types/_hatsy_hatsy.RequestContext-1.html | 4 ++-- types/_hatsy_hatsy.RequestHandler.html | 2 +- types/_hatsy_hatsy.RequestHandlerMethod.html | 2 +- types/_hatsy_hatsy.RequestModification.html | 2 +- types/_hatsy_hatsy.RequestProcessor-1.html | 4 ++-- .../_hatsy_hatsy.RequestValueTransformer.html | 2 +- variables/_hatsy_hatsy.FormDecoding-1.html | 4 ++-- variables/_hatsy_hatsy.HttpForwarding-1.html | 4 ++-- variables/_hatsy_hatsy.JsonParsing-1.html | 4 ++-- variables/_hatsy_hatsy.Logging-1.html | 4 ++-- variables/_hatsy_hatsy.Rendering.html | 2 +- 61 files changed, 167 insertions(+), 167 deletions(-) diff --git a/classes/_hatsy_hatsy.HttpError-1.html b/classes/_hatsy_hatsy.HttpError-1.html index 20299f4..fe74693 100644 --- a/classes/_hatsy_hatsy.HttpError-1.html +++ b/classes/_hatsy_hatsy.HttpError-1.html @@ -35,8 +35,8 @@

Implements

+
  • Defined in hatsy/hatsy/src/http/http-error.ts:11
  • +
  • Defined in hatsy/hatsy/src/http/http-error.ts:92
  • @@ -92,7 +92,7 @@

    Returns

    +
  • Defined in hatsy/hatsy/src/http/http-error.ts:23
  • Properties

    @@ -164,7 +164,7 @@
    +
  • Defined in hatsy/hatsy/src/http/http-error.ts:50
  • +
  • Defined in hatsy/hatsy/src/http/http-error.ts:34
  • +
  • Defined in hatsy/hatsy/src/http/http-error.ts:41
  • Methods

    @@ -227,7 +227,7 @@

    Returns void

    +
  • Defined in hatsy/hatsy/src/http/http-error.ts:62
  • +
  • Defined in hatsy/hatsy/src/core/request-capability.ts:24
  • +
  • Defined in hatsy/hatsy/src/core/request-capability.ts:99
    • @@ -220,7 +220,7 @@

      Returns

    +
  • Defined in hatsy/hatsy/src/core/request-capability.ts:84
  • +
  • Defined in hatsy/hatsy/src/testing/test-http-server.ts:67
  • +
  • Defined in hatsy/hatsy/src/testing/test-http-server.ts:137
  • +
  • Defined in hatsy/hatsy/src/testing/test-http-server.ts:183
  • +
  • Defined in hatsy/hatsy/src/http/dispatch/dispatch-by-accepted.handler.ts:56
  • +
  • Defined in hatsy/hatsy/src/http/dispatch/dispatch-by-method.handler.ts:61
  • +
  • Defined in hatsy/hatsy/src/core/dispatch-error.ts:16
  • +
  • Defined in hatsy/hatsy/src/http/http-listener.ts:69
  • +
  • Defined in hatsy/hatsy/src/http/middleware.ts:44
  • +
  • Defined in hatsy/hatsy/src/core/request-modification.ts:40
  • +
  • Defined in hatsy/hatsy/src/core/request-handler.ts:51
  • +
  • Defined in hatsy/hatsy/src/core/request-processor.ts:62
  • +
  • Defined in hatsy/hatsy/src/core/request-modification.ts:25
  • HTTP listener

    httpListener([config,] handler) function creates a Node.js HTTP listener. It accepts an optional configuration and a RequestHandler to process HTTP requests by.

    -

    HTTP processing configuration has the following options:

    +

    HTTP processing configuration has the following options:

    • defaultHandler - A request handler to call if other handlers did not respond.

      Issues 404 (Not Found) error by default.

    • errorHandler - A request handler to call when error occurred.

      -

      By default, handles HttpError with corresponding status code and renders error page (either HTML or JSON).

      +

      By default, handles HttpError with corresponding status code and renders error page (either HTML or JSON).

    • logError - Whether to log HTTP processing error.

      true by default.

    • handleBy - Creates actual HTTP request handler.

      -

      This can be used e.g. to set up additional request processing capabilities, such as Logging.

      +

      This can be used e.g. to set up additional request processing capabilities, such as Logging.

    Request Handlers

    Everything in Hatsy is implemented as a request handler, which is a function accepting a RequestContext as its only @@ -122,10 +122,10 @@

    Hatsy

    Dispatchers

    Dispatchers are handlers that delegate processing to other handlers depending on request.

    The following dispatcher implemented:

    Middleware

    Connect-style middleware can be utilized by middleware function.

    diff --git a/interfaces/_hatsy_hatsy.DispatchLanguages.html b/interfaces/_hatsy_hatsy.DispatchLanguages.html index 47cbc3e..023a60a 100644 --- a/interfaces/_hatsy_hatsy.DispatchLanguages.html +++ b/interfaces/_hatsy_hatsy.DispatchLanguages.html @@ -36,7 +36,7 @@

    Hierarchy

    Indexable

    [code: string]: RequestHandlerMethod<this, TMeans> | undefined
    +
  • Defined in hatsy/hatsy/src/http/dispatch/dispatch-by-language.handler.ts:12
  • @@ -57,7 +57,7 @@
    +
  • Defined in hatsy/hatsy/src/http/dispatch/dispatch-by-language.handler.ts:24
  • @@ -65,7 +65,7 @@
    +
  • Defined in hatsy/hatsy/src/http/dispatch/dispatch-by-language.handler.ts:16
  • +
  • Defined in hatsy/hatsy/src/core/request-capability.ts:84
    • @@ -152,7 +152,7 @@

      Returns

    +
  • Defined in hatsy/hatsy/src/http/request/form-decoding.capability.ts:44
  • +
  • Defined in hatsy/hatsy/src/http/http-config.ts:33
  • logError?: boolean
    @@ -86,7 +86,7 @@

    true, which means an error will be logged with logger means, created if necessary.

    +
  • Defined in hatsy/hatsy/src/http/http-config.ts:42
  • +
  • Defined in hatsy/hatsy/src/http/http-config.ts:33
  • logError?: boolean
    @@ -98,7 +98,7 @@

    Default

    true, which means an error will be logged with <

    +
  • Defined in hatsy/hatsy/src/http/http-config.ts:42
  • Methods

    @@ -121,7 +121,7 @@

    Returns

    +
  • Defined in hatsy/hatsy/src/http/http-config.ts:63
  • +
  • Defined in hatsy/hatsy/src/http/http-error.ts:100
  • +
  • Defined in hatsy/hatsy/src/core/request-capability.ts:84
    • @@ -125,7 +125,7 @@

      Returns

    +
  • Defined in hatsy/hatsy/src/http/request/http-forwarding.capability.ts:25
  • +
  • Defined in hatsy/hatsy/src/core/request-capability.ts:84
    • @@ -153,7 +153,7 @@

      Returns

    +
  • Defined in hatsy/hatsy/src/http/request/json-parsing.capability.ts:46
  • +
  • Defined in hatsy/hatsy/src/core/request-capability.ts:84
    • @@ -145,7 +145,7 @@

      Returns

    +
  • Defined in hatsy/hatsy/src/core/logging/logging.capability.ts:26
  • +
  • Defined in hatsy/hatsy/src/core/logging/request-logger.ts:12
    • @@ -102,7 +102,7 @@

      Returns void

    +
  • Defined in hatsy/hatsy/src/core/logging/request-logger.ts:26
    • @@ -123,7 +123,7 @@

      Returns void

    +
  • Defined in hatsy/hatsy/src/core/logging/request-logger.ts:42
    • @@ -143,7 +143,7 @@

      Returns void

    +
  • Defined in hatsy/hatsy/src/core/logging/request-logger.ts:19
  • +
  • Defined in hatsy/hatsy/src/http/http-error.ts:11
  • +
  • Defined in hatsy/hatsy/src/http/http-error.ts:92
  • Index

    diff --git a/modules/_hatsy_hatsy.HttpMeans.html b/modules/_hatsy_hatsy.HttpMeans.html index 3bb126e..efc1d27 100644 --- a/modules/_hatsy_hatsy.HttpMeans.html +++ b/modules/_hatsy_hatsy.HttpMeans.html @@ -17,8 +17,8 @@
  • HttpMeans
  • Namespace HttpMeans

    +
  • Defined in hatsy/hatsy/src/http/http.means.ts:12
  • +
  • Defined in hatsy/hatsy/src/http/http.means.ts:32
  • Index

    diff --git a/modules/_hatsy_hatsy.Middleware.html b/modules/_hatsy_hatsy.Middleware.html index acb45e0..139f7ff 100644 --- a/modules/_hatsy_hatsy.Middleware.html +++ b/modules/_hatsy_hatsy.Middleware.html @@ -17,8 +17,8 @@
  • Middleware
  • Namespace Middleware

    +
  • Defined in hatsy/hatsy/src/http/middleware.ts:21
  • +
  • Defined in hatsy/hatsy/src/http/middleware.ts:26
  • Index

    diff --git a/modules/_hatsy_hatsy.RequestCapability.html b/modules/_hatsy_hatsy.RequestCapability.html index 055b9c0..f8ddc39 100644 --- a/modules/_hatsy_hatsy.RequestCapability.html +++ b/modules/_hatsy_hatsy.RequestCapability.html @@ -17,8 +17,8 @@
  • RequestCapability
  • Namespace RequestCapability

    +
  • Defined in hatsy/hatsy/src/core/request-capability.ts:13
  • +
  • Defined in hatsy/hatsy/src/core/request-capability.ts:107
  • Index

    diff --git a/modules/_hatsy_hatsy.RequestContext.html b/modules/_hatsy_hatsy.RequestContext.html index 409f403..dda04f9 100644 --- a/modules/_hatsy_hatsy.RequestContext.html +++ b/modules/_hatsy_hatsy.RequestContext.html @@ -17,8 +17,8 @@
  • RequestContext
  • Namespace RequestContext

    +
  • Defined in hatsy/hatsy/src/core/request-context.ts:16
  • +
  • Defined in hatsy/hatsy/src/core/request-context.ts:18
  • Index

    diff --git a/modules/_hatsy_hatsy.RequestProcessor.html b/modules/_hatsy_hatsy.RequestProcessor.html index c570700..27e69eb 100644 --- a/modules/_hatsy_hatsy.RequestProcessor.html +++ b/modules/_hatsy_hatsy.RequestProcessor.html @@ -17,8 +17,8 @@
  • RequestProcessor
  • Namespace RequestProcessor

    +
  • Defined in hatsy/hatsy/src/core/request-processor.ts:12
  • +
  • Defined in hatsy/hatsy/src/core/request-processor.ts:21
  • Index

    diff --git a/modules/_hatsy_hatsy.html b/modules/_hatsy_hatsy.html index a6b819c..d505824 100644 --- a/modules/_hatsy_hatsy.html +++ b/modules/_hatsy_hatsy.html @@ -16,7 +16,7 @@
  • @hatsy/hatsy
  • Module @hatsy/hatsy

    +
  • Defined in hatsy/hatsy/src/mod.ts:1
  • Index

    diff --git a/modules/_hatsy_hatsy_core_js.html b/modules/_hatsy_hatsy_core_js.html index ef0d552..d196f51 100644 --- a/modules/_hatsy_hatsy_core_js.html +++ b/modules/_hatsy_hatsy_core_js.html @@ -16,7 +16,7 @@
  • @hatsy/hatsy/core.js
  • Module @hatsy/hatsy/core.js

    +
  • Defined in hatsy/hatsy/src/core/mod.ts:1
  • diff --git a/modules/_hatsy_hatsy_testing_js.TestHttpServer.html b/modules/_hatsy_hatsy_testing_js.TestHttpServer.html index de7bcc0..7a3c100 100644 --- a/modules/_hatsy_hatsy_testing_js.TestHttpServer.html +++ b/modules/_hatsy_hatsy_testing_js.TestHttpServer.html @@ -17,8 +17,8 @@
  • TestHttpServer
  • Namespace TestHttpServer

    +
  • Defined in hatsy/hatsy/src/testing/test-http-server.ts:21
  • +
  • Defined in hatsy/hatsy/src/testing/test-http-server.ts:189
  • Index

    diff --git a/modules/_hatsy_hatsy_testing_js.html b/modules/_hatsy_hatsy_testing_js.html index 5954488..a6d5513 100644 --- a/modules/_hatsy_hatsy_testing_js.html +++ b/modules/_hatsy_hatsy_testing_js.html @@ -16,7 +16,7 @@
  • @hatsy/hatsy/testing.js
  • Module @hatsy/hatsy/testing.js

    +
  • Defined in hatsy/hatsy/src/testing/mod.ts:1
  • Index

    diff --git a/types/_hatsy_hatsy.Middleware-1.html b/types/_hatsy_hatsy.Middleware-1.html index a70c41b..373345a 100644 --- a/types/_hatsy_hatsy.Middleware-1.html +++ b/types/_hatsy_hatsy.Middleware-1.html @@ -63,8 +63,8 @@
    next: Returns void
    +
  • Defined in hatsy/hatsy/src/http/middleware.ts:21
  • +
  • Defined in hatsy/hatsy/src/http/middleware.ts:26
  • +
  • Defined in hatsy/hatsy/src/http/middleware.ts:33
  • +
  • Defined in hatsy/hatsy/src/core/request-capability.ts:121
  • +
  • Defined in hatsy/hatsy/src/core/request-context.ts:16
  • +
  • Defined in hatsy/hatsy/src/core/request-context.ts:18
  • +
  • Defined in hatsy/hatsy/src/core/request-handler.ts:18
  • +
  • Defined in hatsy/hatsy/src/core/request-handler.ts:35
  • +
  • Defined in hatsy/hatsy/src/core/request-modification.ts:9
  • +
  • Defined in hatsy/hatsy/src/core/request-processor.ts:12
  • +
  • Defined in hatsy/hatsy/src/core/request-processor.ts:21
  • +
  • Defined in hatsy/hatsy/src/core/request-value-transformer.ts:12
  • +
  • Defined in hatsy/hatsy/src/http/request/form-decoding.capability.ts:33
  • +
  • Defined in hatsy/hatsy/src/http/request/form-decoding.capability.ts:101
  • +
  • Defined in hatsy/hatsy/src/http/request/http-forwarding.capability.ts:17
  • +
  • Defined in hatsy/hatsy/src/http/request/http-forwarding.capability.ts:71
  • +
  • Defined in hatsy/hatsy/src/http/request/json-parsing.capability.ts:35
  • +
  • Defined in hatsy/hatsy/src/http/request/json-parsing.capability.ts:107
  • +
  • Defined in hatsy/hatsy/src/core/logging/logging.capability.ts:16
  • +
  • Defined in hatsy/hatsy/src/core/logging/logging.capability.ts:73
  • +
  • Defined in hatsy/hatsy/src/http/render/rendering.capability.ts:53