Ejemplo n.º 1
0
def errorsRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyErrorDelivery()
    b.rootURI = root_uri_errors()
    return b
Ejemplo n.º 2
0
def gatewayRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyGateway()
    b.pattern = server_pattern_gateway()[server_provide_gateway()]
    return b
Ejemplo n.º 3
0
def contentRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyContent()
    b.rootURI = root_uri_content()
    return b
Ejemplo n.º 4
0
def resourcesRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyResources()
    b.rootURI = root_uri_resources()
    return b
Ejemplo n.º 5
0
def resourcesRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyResources()
    b.pattern = server_pattern_resources()
    return b
Ejemplo n.º 6
0
def errorsRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyErrorDelivery()
    b.pattern = server_pattern_errors()
    return b
Ejemplo n.º 7
0
def resourcesRouterInternal() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyRESTInternal()
    b.rootURI = root_uri_resources()
    return b
Ejemplo n.º 8
0
def errorsRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyErrorDelivery()
    b.rootURI = root_uri_errors()
    return b
Ejemplo n.º 9
0
 def resourcesRouterGateway():
     b = RoutingByPathHandler()
     b.assembly = assemblyResourcesGateway()
     b.pattern = server_pattern_resources()
     return b
Ejemplo n.º 10
0
def contentRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyContent()
    b.pattern = server_pattern_content()
    return b
Ejemplo n.º 11
0
def contentRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyContent()
    b.pattern = server_pattern_content()
    return b
Ejemplo n.º 12
0
def errorsRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyErrorDelivery()
    b.pattern = server_pattern_errors()
    return b
Ejemplo n.º 13
0
def profileRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyProfile()
    b.pattern = '^profile(?:/|(?=\\.)|$)'
    return b
Ejemplo n.º 14
0
def notFoundRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyNotFound()
    b.pattern = '(?:.*)'
    return b
Ejemplo n.º 15
0
def gatewayRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyGateway()
    b.pattern = server_pattern_gateway()[server_provide_gateway()]
    return b
Ejemplo n.º 16
0
def contentRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyContent()
    b.rootURI = root_uri_content()
    return b
Ejemplo n.º 17
0
def notFoundRouter() -> Handler:
    b = RoutingByPathHandler()
    b.assembly = assemblyNotFound()
    b.pattern = '(?:.*)'
    return b