-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: initial attempt at adding webtransport to grizzly
- Loading branch information
Showing
30 changed files
with
1,142 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
ignore: | ||
- "grizzly/services/webtransport/wpt_h3_server" | ||
codecov: | ||
ci: | ||
- community-tc.services.mozilla.com |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
__all__ = ( | ||
"ServiceName", | ||
"WebServices", | ||
"WebTransportServer", | ||
) | ||
|
||
from .core import ServiceName, WebServices | ||
from .webtransport.core import WebTransportServer |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
from abc import ABC, abstractmethod | ||
|
||
|
||
class BaseService(ABC): | ||
"""Base service class""" | ||
|
||
@property | ||
@abstractmethod | ||
def location(self) -> str: | ||
"""Location to use with Sapphire.set_dynamic_response""" | ||
|
||
@property | ||
@abstractmethod | ||
def port(self) -> int: | ||
"""The port on which the server is listening""" | ||
|
||
@abstractmethod | ||
def url(self, _query: str) -> bytes: | ||
"""Returns the URL of the server.""" | ||
|
||
@abstractmethod | ||
async def is_ready(self) -> None: | ||
"""Wait until the service is ready""" | ||
|
||
@abstractmethod | ||
def cleanup(self) -> None: | ||
"""Stop the server.""" |
Oops, something went wrong.