This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from typing import Any, Mapping | |
from bareasgi import Application | |
from bareasgi_cors import CORSMiddleware | |
from bareasgi_graphql_next.graphene import add_graphene | |
from baretypes import ( | |
Scope, | |
Info, | |
Message |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import graphene | |
from .queries import Query | |
from .mutations import Mutations | |
from .subscriptions import Subscription | |
SCHEMA = graphene.Schema(query=Query, mutation=Mutations, subscription=Subscription) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import signal | |
from typing import Any, Mapping | |
from bareasgi import Application | |
import pkg_resources | |
import hypercorn.asyncio | |
import hypercorn.config | |
from demo.app import make_application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Example Client | |
The client connects without TLS, but using the fully qualified domain name. To | |
authenticate the server, the FQDN is required. This can be specified either at | |
connection time, or with the start_tls call. | |
First the client sends a "PING" over the unencrypted stream to the server. The | |
server should respond with "PONG". |
OlderNewer