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