Skip to content

Commit

Permalink
Inherit grpc.Server
Browse files Browse the repository at this point in the history
  • Loading branch information
public committed Apr 22, 2019
1 parent 7e2e7f6 commit a5e7d59
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion grpcWSGI/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)


class grpcWSGI:
class grpcWSGI(grpc.Server):
"""
WSGI Application Object that understands gRPC-Web.
Expand All @@ -26,6 +26,18 @@ def __init__(self, application):
def add_generic_rpc_handlers(self, handlers):
self._handlers.extend(handlers)

def add_insecure_port(self, port):
raise NotImplementedError()

def add_secure_port(self, port):
raise NotImplementedError()

def start(self):
raise NotImplementedError()

def stop(self):
raise NotImplementedError()

def _get_rpc_handler(self, environ):
path = environ["PATH_INFO"]

Expand Down

0 comments on commit a5e7d59

Please sign in to comment.