diff --git a/happyx.html b/happyx.html index 2ad10a24..6a4676be 100644 --- a/happyx.html +++ b/happyx.html @@ -293,7 +293,7 @@

Imports

Exports

- routes, []=, ModelBase, ., answerHtml, CustomHeaders, answerFile, fgColored, ApiDocObject, start, serve, initServer, liveview, answer, newServer, newCustomHeaders, newApiDocObject, Server, answerJson, modelFieldsGenerics, modelFields, model, parseFormData, parseXmlBody, parseXWwwFormUrlencoded, FormDataItem, addCORSHeaders, CORSObj, regCORS, startSession, Session, closeSession, startSession, closeSession, genSessionId, getSession, generate_password, check_password, compDefArg, component, reRenderTmpl, scopeCss, importComponent, HpxModelSyntaxDefect, throwDefect, HpxServeRouteDefect, HpxBuildStyleDefect, HpxPathParamDefect, HpxUseDefect, HpxMountDefect, HpxSyntaxSugarDefect, HpxBuildJsDefect, HpxCorsDefect, HpxBuildHtmlDefect, HpxTranslatableDefect, HpxAppRouteDefect, HpxComponentDefect, appName, enableAppRouting, enableUseCompDebugMacro, httpMethods, componentDebugTarget, enableDebug, sessionIdLength, htmlTagsList, enableHttpx, apiDocsPath, enableSafeRequests, cryptoMethod, enableMicro, exportPython, enableDefaultDecorators, enableRoutingDebugMacro, HpxMajor, numThreads, enableTemplateEngine, HpxVersion, enableDebugComponentMacro, enableDebugTreeComponentMacro, reqModelDebugTarget, enableLiveViews, enableHttpBeast, exportJvm, HpxMinor, enableAutoTranslate, enableRequestModelDebugMacro, enableApiDoc, enableDebugSpaMacro, HpxPatch, enableHistoryApi, enableDefaultComponents, nim_1_6_14, enableDebugSsrMacro, nim_2_0_0, use, componentEventHandlers, registerApp, routes, components, createdComponentsList, addArg, ugly, buildHtmlSlot, application, route, tag, renderVdom, tag, BaseComponent, injectJs, lvl, [], []=, eventHandlers, App, initTag, initTag, ComponentEventHandler, getAttribute, componentsResult, addArgIter, requestResult, thunkHtml, UnclosedTags, textTag, initTag, registerComponent, buildComponentHtml, frwrd, [], js, get, liveviewRoutes, NimKeywords, SvgElements, currentComponent, currentRoute, buildHtmls, $, AppEventHandler, scopedCycleCounter, tagFromString, buildHtml, BaseComponentObj, appRoutes, findByTag, reRender, buildHtml, rerender, route, currentComponentsList, render, TagRef, toSeqIter, bck, rf, thunkHtmls, start, initTag, add, rendererHandlers, /, []=, %, /, <, toFloat, @=, toInt64, >=, ==, ~=, /=, ^, low, [], /, $, @, <, +=, State, -, >, *=, @=, !, toInt8, ^=, -=, *=, %=, !=, /=, &, remember, :=, $=, <=, languageSettings, %=, ==, !, []=, :=, *, &, get, @, *, -=, %=, /=, |=, toInt, val=, not, toInt32, &=, enableRouting, toCString, ^, set, +, $=, [], %, <=, !, toBool, [], +=, !=, toString, @, >=, set, -=, &=, %, toChar, +, +=, &=, pairs, toFloat32, toSeq, []=, |=, ~=, -, []=, <, items, ^, >, toFloat64, >, *=, &, :=, ->, len, ^=, |=, +, @=, high, ~=, [], -, $=, toInt16, *, ^=, [], [], regDecorator, decorators, decorator, DecoratorImpl, LanguageSettings, translate, i18n, translatable, nnkNumbers, buildStyle, initTag, tag, textTag, SvgElements, addArgIter, initTag, TagRef, tag, toSeqIter, findByTag, ugly, []=, $, add, initTag, get, getAttribute, lvl, UnclosedTags, NimKeywords, initTag, tagFromString, [], addArg, [], mount, findAndReplaceMount, registeredMounts, sugarRoutes, ->, has, has, :=, buildJs, toHttpHeaders, toJsonNode, getRouteParams, enumerate, parseBoolOrJString, scanf, boolean, exportRouteArgs, parseIntOrJString, str, default, PathParamObj, newPathParamObj, word, onException, kind, RequestModelObj, handleRoute, RouteObject, convertJson, newRequestModelObj, path, pathParams, parseFloatOrJString, RouteDataObj, integer, realnum, parseQueryArrays, ?, parseQuery, render, renderTemplate, templateFolder + routes, fetchPathParams, start, ModelBase, ., answerHtml, ApiDocObject, liveViewScript, genApiDoc, answerFile, serve, initServer, fetchModelFields, procApiDocs, answer, newServer, happyxDocs, Server, openApiDocs, newApiDocObject, answerJson, modelFieldsGenerics, modelFields, model, parseFormData, parseXmlBody, parseXWwwFormUrlencoded, FormDataItem, addCORSHeaders, CORSObj, regCORS, startSession, Session, closeSession, startSession, closeSession, genSessionId, getSession, generate_password, check_password, compDefArg, component, reRenderTmpl, scopeCss, importComponent, HpxModelSyntaxDefect, throwDefect, HpxServeRouteDefect, HpxBuildStyleDefect, HpxPathParamDefect, HpxUseDefect, HpxMountDefect, HpxSyntaxSugarDefect, HpxBuildJsDefect, HpxCorsDefect, HpxBuildHtmlDefect, HpxTranslatableDefect, HpxAppRouteDefect, HpxComponentDefect, appName, enableAppRouting, enableUseCompDebugMacro, httpMethods, componentDebugTarget, enableDebug, sessionIdLength, htmlTagsList, enableHttpx, apiDocsPath, enableSafeRequests, cryptoMethod, enableMicro, exportPython, enableDefaultDecorators, enableRoutingDebugMacro, HpxMajor, numThreads, enableTemplateEngine, HpxVersion, enableDebugComponentMacro, enableDebugTreeComponentMacro, reqModelDebugTarget, enableLiveViews, enableHttpBeast, exportJvm, HpxMinor, enableAutoTranslate, enableRequestModelDebugMacro, enableApiDoc, enableDebugSpaMacro, HpxPatch, enableHistoryApi, enableDefaultComponents, nim_1_6_14, enableDebugSsrMacro, nim_2_0_0, use, componentEventHandlers, registerApp, routes, components, createdComponentsList, addArg, ugly, buildHtmlSlot, application, route, tag, renderVdom, tag, BaseComponent, injectJs, lvl, [], []=, eventHandlers, App, initTag, initTag, ComponentEventHandler, getAttribute, componentsResult, addArgIter, requestResult, thunkHtml, UnclosedTags, textTag, initTag, registerComponent, buildComponentHtml, frwrd, [], js, get, liveviewRoutes, NimKeywords, SvgElements, currentComponent, currentRoute, buildHtmls, $, AppEventHandler, scopedCycleCounter, tagFromString, buildHtml, BaseComponentObj, appRoutes, findByTag, reRender, buildHtml, rerender, route, currentComponentsList, render, TagRef, toSeqIter, bck, rf, thunkHtmls, start, initTag, add, rendererHandlers, /, []=, %, /, <, toFloat, @=, toInt64, >=, ==, ~=, /=, ^, low, [], /, $, @, <, +=, State, -, >, *=, @=, !, toInt8, ^=, -=, *=, %=, !=, /=, &, remember, :=, $=, <=, languageSettings, %=, ==, !, []=, :=, *, &, get, @, *, -=, %=, /=, |=, toInt, val=, not, toInt32, &=, enableRouting, toCString, ^, set, +, $=, [], %, <=, !, toBool, [], +=, !=, toString, @, >=, set, -=, &=, %, toChar, +, +=, &=, pairs, toFloat32, toSeq, []=, |=, ~=, -, []=, <, items, ^, >, toFloat64, >, *=, &, :=, ->, len, ^=, |=, +, @=, high, ~=, [], -, $=, toInt16, *, ^=, [], [], regDecorator, decorators, decorator, DecoratorImpl, LanguageSettings, translate, i18n, translatable, nnkNumbers, buildStyle, initTag, tag, textTag, SvgElements, addArgIter, initTag, TagRef, tag, toSeqIter, findByTag, ugly, []=, $, add, initTag, get, getAttribute, lvl, UnclosedTags, NimKeywords, initTag, tagFromString, [], addArg, [], mount, findAndReplaceMount, registeredMounts, sugarRoutes, ->, has, has, :=, buildJs, toHttpHeaders, fgColored, CustomHeaders, newCustomHeaders, []=, toJsonNode, getRouteParams, enumerate, parseBoolOrJString, scanf, boolean, exportRouteArgs, parseIntOrJString, str, default, PathParamObj, newPathParamObj, word, onException, kind, RequestModelObj, handleRoute, RouteObject, convertJson, newRequestModelObj, path, pathParams, parseFloatOrJString, RouteDataObj, integer, realnum, parseQueryArrays, ?, parseQuery, render, renderTemplate, templateFolder
@@ -303,7 +303,7 @@

Exports

diff --git a/happyx/bindings/python_types.html b/happyx/bindings/python_types.html index 4bc12ae7..b0bc696c 100644 --- a/happyx/bindings/python_types.html +++ b/happyx/bindings/python_types.html @@ -578,7 +578,7 @@

Procs

diff --git a/happyx/core/constants.html b/happyx/core/constants.html index 3dd996d9..a7803e06 100644 --- a/happyx/core/constants.html +++ b/happyx/core/constants.html @@ -472,7 +472,7 @@

Consts

diff --git a/happyx/core/exceptions.html b/happyx/core/exceptions.html index f11f32cf..bc9befe7 100644 --- a/happyx/core/exceptions.html +++ b/happyx/core/exceptions.html @@ -226,7 +226,7 @@

Procs

diff --git a/happyx/core/queries.html b/happyx/core/queries.html index b1088fea..f01b34dd 100644 --- a/happyx/core/queries.html +++ b/happyx/core/queries.html @@ -159,7 +159,7 @@

diff --git a/happyx/core/secure.html b/happyx/core/secure.html index 89b78d8c..02c0f957 100644 --- a/happyx/core/secure.html +++ b/happyx/core/secure.html @@ -120,7 +120,7 @@

Procs

diff --git a/happyx/private/macro_utils.html b/happyx/private/macro_utils.html index 6653d85c..ac1af031 100644 --- a/happyx/private/macro_utils.html +++ b/happyx/private/macro_utils.html @@ -461,7 +461,7 @@

Procs

diff --git a/happyx/private/scanutils.html b/happyx/private/scanutils.html index a5da4c2e..c3fd5872 100644 --- a/happyx/private/scanutils.html +++ b/happyx/private/scanutils.html @@ -275,7 +275,7 @@

Macros

diff --git a/happyx/routing/decorators.html b/happyx/routing/decorators.html index 8cc5a3f1..86236324 100644 --- a/happyx/routing/decorators.html +++ b/happyx/routing/decorators.html @@ -201,7 +201,7 @@

Macros

diff --git a/happyx/routing/mounting.html b/happyx/routing/mounting.html index 76415336..58a48db5 100644 --- a/happyx/routing/mounting.html +++ b/happyx/routing/mounting.html @@ -175,7 +175,7 @@

diff --git a/happyx/routing/routing.html b/happyx/routing/routing.html index fdcfdf1d..263846dd 100644 --- a/happyx/routing/routing.html +++ b/happyx/routing/routing.html @@ -532,7 +532,7 @@

Exports

diff --git a/happyx/spa/components.html b/happyx/spa/components.html index ae5b6dcd..220da8d9 100644 --- a/happyx/spa/components.html +++ b/happyx/spa/components.html @@ -285,7 +285,7 @@

Templates

diff --git a/happyx/spa/renderer.html b/happyx/spa/renderer.html index 5063ad29..22c24710 100644 --- a/happyx/spa/renderer.html +++ b/happyx/spa/renderer.html @@ -818,7 +818,7 @@

Exports

diff --git a/happyx/spa/state.html b/happyx/spa/state.html index 6def2996..5fd4ea15 100644 --- a/happyx/spa/state.html +++ b/happyx/spa/state.html @@ -1574,7 +1574,7 @@

Templates

diff --git a/happyx/spa/tag.html b/happyx/spa/tag.html index 6c4be294..56b90ca9 100644 --- a/happyx/spa/tag.html +++ b/happyx/spa/tag.html @@ -573,7 +573,7 @@

Example< diff --git a/happyx/spa/translatable.html b/happyx/spa/translatable.html index dc7a29c6..522bf64d 100644 --- a/happyx/spa/translatable.html +++ b/happyx/spa/translatable.html @@ -203,7 +203,7 @@

Templates

diff --git a/happyx/ssr/cors.html b/happyx/ssr/cors.html index 995a9426..bda76bf9 100644 --- a/happyx/ssr/cors.html +++ b/happyx/ssr/cors.html @@ -153,7 +153,7 @@

Macros

diff --git a/happyx/ssr/docs/api_doc_template.html b/happyx/ssr/docs/api_doc_template.html index 999c1bc8..ed00ca4a 100644 --- a/happyx/ssr/docs/api_doc_template.html +++ b/happyx/ssr/docs/api_doc_template.html @@ -97,7 +97,7 @@

Consts

diff --git a/happyx/ssr/docs/autodocs.html b/happyx/ssr/docs/autodocs.html index 34bbeec8..b790c993 100644 --- a/happyx/ssr/docs/autodocs.html +++ b/happyx/ssr/docs/autodocs.html @@ -51,6 +51,20 @@

src/happyx/ssr/docs/autodocs

  • Imports
  • +
  • +
    + Types + +
    +
  • Procs @@ -70,6 +84,12 @@

    src/happyx/ssr/docs/autodocs

    +
  • Imports
  • -
  • -
    - Types - -
    -
  • Procs
  • +
  • + Exports +
  • @@ -232,88 +180,18 @@

    Imports

    - cors, liveviews_utils, ../spa/tag, ../spa/renderer, ../core/exceptions, ../core/constants, ../private/macro_utils, ../routing/routing, ../routing/mounting, ../routing/decorators, ../sugar/sgr, ../bindings/python_types, handlers, docs/autodocs -
    - -
    -

    Types

    -
    -
    -
    ApiDocObject = object
    -  description*: string
    -  path*: string
    -  httpMethod*: seq[string]
    -  pathParams*: seq[PathParamObj]
    -  models*: seq[RequestModelObj]
    -
    - - - -
    -
    -
    -
    CustomHeaders = StringTableRef
    -
    - - - -
    -
    -
    -
    ModelBase = ref object of PyNimObjectExperimental
    -
    - - - -
    -
    -
    -
    Server = ref object
    -  address*: string
    -  port*: int
    -  routes*: seq[Route]
    -  path*: string
    -  parent*: Server
    -  notFoundCallback*: PyObject
    -  middlewareCallback*: PyObject
    -  logger*: Logger
    -  when enableHttpx:
    -    instance*: Settings
    -  elif enableHttpBeast:
    -    instance*: Settings
    -  elif enableMicro:
    -    instance*: MicroAsyncHttpServer
    -  else:
    -    instance*: AsyncHttpServer
    -
    - - - -
    -
    - + cors, types, utils, liveviews/utils, liveviews/liveviews, ../spa/tag, ../spa/renderer, ../core/exceptions, ../core/constants, ../private/macro_utils, ../routing/routing, ../routing/mounting, ../routing/decorators, ../sugar/sgr, docs/autodocs, handlers

    Procs

    -
    -
    -
    proc `[]=`[T](self: CustomHeaders; key: string; value: T)
    -
    - - - -
    -
    - -
    -
    +
    proc answerFile(req: Request; filename: string; code: HttpCode = Http200;
                     asAttachment = false; bufSize: int = 40960;
                     forceResponse: bool = false;
    -                headers: CustomHeaders = newCustomHeaders()): owned(
    +                headers: CustomHeaders = newCustomHeaders()): owned(
         Future[void]) {....stackTrace: false, raises: [Exception], tags: [RootEffect],
                         forbids: [].}
    @@ -328,56 +206,10 @@

    Procs

    -
    -
    -
    -
    func fgColored(text: string; clr: ForegroundColor): string {.inline, ...raises: [],
    -    tags: [], forbids: [].}
    -
    - -

    This function takes in a string of text and a ForegroundColor enum value and returns the same text with the specified color applied.

    -

    Arguments:

    -
    • text: A string value representing the text to apply color to.
    • -
    • clr: A ForegroundColor enum value representing the color to apply to the text.
    • -
    -

    Return value:

    -
    • The function returns a string value with the specified color applied to the input text.
    • -
    - -

    Example:

    -
    echo fgColored("Hello, world!", fgRed)
    - -
    -
    - -
    -
    -
    -
    proc newApiDocObject(httpMethod: seq[string]; description, path: string;
    -                     pathParams: seq[PathParamObj]; models: seq[RequestModelObj]): ApiDocObject {.
    -    ...raises: [], tags: [], forbids: [].}
    -
    - - - -
    -
    - -
    -
    -
    -
    proc newCustomHeaders(): CustomHeaders {....raises: [], tags: [], forbids: [].}
    -
    - - - -
    -
    -
    -
    proc newServer(address: string = "127.0.0.1"; port: int = 5000): Server {.
    +  
    proc newServer(address: string = "127.0.0.1"; port: int = 5000): Server {.
         ...raises: [], tags: [], forbids: [].}
    @@ -429,21 +261,10 @@

    Macros

    -
    -
    -
    -
    macro liveview(body: untyped): untyped
    -
    - - - -
    -
    -
    -
    macro routes(server: Server; body: untyped = newStmtList()): untyped
    +
    macro routes(server: Server; body: untyped = newStmtList()): untyped
    You can create routes with this marco @@ -605,7 +426,7 @@

    Templates

    -
    template start(server: Server): untyped
    +
    template start(server: Server): untyped
    The start template starts the given server and listens for incoming connections. Parameters:
    • server: A Server instance that needs to be started.
    • @@ -622,6 +443,12 @@

      Templates

    + @@ -629,7 +456,7 @@

    Templates

    diff --git a/happyx/ssr/server.idx b/happyx/ssr/server.idx index 15c2419e..e510cdac 100644 --- a/happyx/ssr/server.idx +++ b/happyx/ssr/server.idx @@ -1,23 +1,14 @@ nimTitle server happyx/ssr/server.html module src/happyx/ssr/server 0 -nim CustomHeaders happyx/ssr/server.html#CustomHeaders type CustomHeaders 127 -nim newCustomHeaders happyx/ssr/server.html#newCustomHeaders proc newCustomHeaders(): CustomHeaders 129 -nim `[]=` happyx/ssr/server.html#[]=,CustomHeaders,string,T proc `[]=`[T](self: CustomHeaders; key: string; value: T) 131 -nim Server happyx/ssr/server.html#Server type Server 148 -nim ModelBase happyx/ssr/server.html#ModelBase type ModelBase 166 -nim ApiDocObject happyx/ssr/server.html#ApiDocObject object ApiDocObject 233 -nim newApiDocObject happyx/ssr/server.html#newApiDocObject,seq[string],string,string,seq[PathParamObj],seq[RequestModelObj] proc newApiDocObject(httpMethod: seq[string]; description, path: string;\n pathParams: seq[PathParamObj]; models: seq[RequestModelObj]): ApiDocObject 240 -nim fgColored happyx/ssr/server.html#fgColored,string,ForegroundColor proc fgColored(text: string; clr: ForegroundColor): string 298 -nim newServer happyx/ssr/server.html#newServer,string,int proc newServer(address: string = "127.0.0.1"; port: int = 5000): Server 313 -nim start happyx/ssr/server.html#start.t,Server template start(server: Server): untyped 352 -nim `.` happyx/ssr/server.html#..m,JsonNode,untyped macro `.`(obj: JsonNode; field: untyped): JsonNode 380 -nim answer happyx/ssr/server.html#answer.t,Request,,HttpCode,HttpHeaders,Option[int] template answer(req: Request; message: string | int | float | bool | char;\n code: HttpCode = Http200; headers: HttpHeaders = newHttpHeaders(\n [("Content-Type", "text/plain; charset=utf-8")]);\n contentLength: Option[int] = int.none) 384 -nim answerJson happyx/ssr/server.html#answerJson.t,Request,untyped,HttpCode,HttpHeaders template answerJson(req: Request; data: untyped; code: HttpCode = Http200; headers: HttpHeaders = newHttpHeaders(\n [("Content-Type", "application/json; charset=utf-8")])): untyped 480 -nim answerHtml happyx/ssr/server.html#answerHtml.t,Request,,HttpCode,HttpHeaders template answerHtml(req: Request; data: string | TagRef; code: HttpCode = Http200;\n headers: HttpHeaders = newHttpHeaders(\n [("Content-Type", "text/html; charset=utf-8")])): untyped 501 -nim answerFile happyx/ssr/server.html#answerFile,Request,string,HttpCode,int,bool,CustomHeaders proc answerFile(req: Request; filename: string; code: HttpCode = Http200;\n asAttachment = false; bufSize: int = 40960;\n forceResponse: bool = false;\n headers: CustomHeaders = newCustomHeaders()): owned(Future[void]) 540 -nim routes happyx/ssr/server.html#routes.m,Server,untyped macro routes(server: Server; body: untyped = newStmtList()): untyped 682 -nim initServer happyx/ssr/server.html#initServer.m,untyped macro initServer(body: untyped): untyped 1646 -nim serve happyx/ssr/server.html#serve.m,string,int,untyped macro serve(address: string; port: int; body: untyped): untyped 1674 -nim liveview happyx/ssr/server.html#liveview.m,untyped macro liveview(body: untyped): untyped 1742 +nim newServer happyx/ssr/server.html#newServer,string,int proc newServer(address: string = "127.0.0.1"; port: int = 5000): Server 130 +nim start happyx/ssr/server.html#start.t,Server template start(server: Server): untyped 169 +nim `.` happyx/ssr/server.html#..m,JsonNode,untyped macro `.`(obj: JsonNode; field: untyped): JsonNode 197 +nim answer happyx/ssr/server.html#answer.t,Request,,HttpCode,HttpHeaders,Option[int] template answer(req: Request; message: string | int | float | bool | char;\n code: HttpCode = Http200; headers: HttpHeaders = newHttpHeaders(\n [("Content-Type", "text/plain; charset=utf-8")]);\n contentLength: Option[int] = int.none) 201 +nim answerJson happyx/ssr/server.html#answerJson.t,Request,untyped,HttpCode,HttpHeaders template answerJson(req: Request; data: untyped; code: HttpCode = Http200; headers: HttpHeaders = newHttpHeaders(\n [("Content-Type", "application/json; charset=utf-8")])): untyped 297 +nim answerHtml happyx/ssr/server.html#answerHtml.t,Request,,HttpCode,HttpHeaders template answerHtml(req: Request; data: string | TagRef; code: HttpCode = Http200;\n headers: HttpHeaders = newHttpHeaders(\n [("Content-Type", "text/html; charset=utf-8")])): untyped 318 +nim answerFile happyx/ssr/server.html#answerFile,Request,string,HttpCode,int,bool,CustomHeaders proc answerFile(req: Request; filename: string; code: HttpCode = Http200;\n asAttachment = false; bufSize: int = 40960;\n forceResponse: bool = false;\n headers: CustomHeaders = newCustomHeaders()): owned(Future[void]) 357 +nim routes happyx/ssr/server.html#routes.m,Server,untyped macro routes(server: Server; body: untyped = newStmtList()): untyped 499 +nim initServer happyx/ssr/server.html#initServer.m,untyped macro initServer(body: untyped): untyped 1379 +nim serve happyx/ssr/server.html#serve.m,string,int,untyped macro serve(address: string; port: int; body: untyped): untyped 1403 heading Available Path Params happyx/ssr/server.html#custom-static-directory-⚙-available-path-params Available Path Params 0 heading Available Route Types happyx/ssr/server.html#custom-static-directory-⚙-available-route-types Available Route Types 0 heading Route Scope: happyx/ssr/server.html#custom-static-directory-⚙-route-scopecolon Route Scope: 0 diff --git a/happyx/ssr/session.html b/happyx/ssr/session.html index 72a5cfe2..abbef859 100644 --- a/happyx/ssr/session.html +++ b/happyx/ssr/session.html @@ -231,7 +231,7 @@

    Templates

    diff --git a/happyx/ssr/types.html b/happyx/ssr/types.html new file mode 100644 index 00000000..f33a6bdb --- /dev/null +++ b/happyx/ssr/types.html @@ -0,0 +1,150 @@ + + + + + + + +src/happyx/ssr/types + + + + + + + + + + + + +
    +
    +

    src/happyx/ssr/types

    +
    +
    +
    + + +
    + +
    + Search: +
    +
    + Group by: + +
    + + +
    +
    + +
    + +

    + +
    +

    Types

    +
    +
    +
    ModelBase = ref object of PyNimObjectExperimental
    +
    + + + +
    +
    +
    +
    Server = ref object
    +  address*: string
    +  port*: int
    +  routes*: seq[Route]
    +  path*: string
    +  parent*: Server
    +  notFoundCallback*: PyObject
    +  middlewareCallback*: PyObject
    +  logger*: Logger
    +  when enableHttpx:
    +    instance*: Settings
    +  elif enableHttpBeast:
    +    instance*: Settings
    +  elif enableMicro:
    +    instance*: MicroAsyncHttpServer
    +  else:
    +    instance*: AsyncHttpServer
    +  components*: TableRef[string, BaseComponent]
    +
    + + + +
    +
    + +
    +
    + +
    +
    + + +
    +
    + + + + + + diff --git a/happyx/ssr/types.idx b/happyx/ssr/types.idx new file mode 100644 index 00000000..23034f9a --- /dev/null +++ b/happyx/ssr/types.idx @@ -0,0 +1,3 @@ +nimTitle types happyx/ssr/types.html module src/happyx/ssr/types 0 +nim Server happyx/ssr/types.html#Server type Server 42 +nim ModelBase happyx/ssr/types.html#ModelBase type ModelBase 60 diff --git a/happyx/ssr/utils.html b/happyx/ssr/utils.html index ab073267..9578620a 100644 --- a/happyx/ssr/utils.html +++ b/happyx/ssr/utils.html @@ -48,11 +48,32 @@

    src/happyx/ssr/utils