Skip to content

Introduce transports as a module - #121

Open
cgl wants to merge 1 commit into
mainfrom
refactor/package-transports
Open

cgl wants to merge 1 commit into
mainfrom
refactor/package-transports

Conversation

@cgl

@cgl cgl commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Comment on lines +39 to +44
class Transport:
def send(self, request: Request) -> ResponseStream:
raise NotImplementedError()

def close(self):
pass

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reminds me... #114

) -> ResponseStream:
request = Request(method, url, headers=headers, content=content)
return self.send(request)
from .._body import GZipStream, HTTPStream

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Observation... Not sure these are in the right place. (Not part of this PR, just a reminder)

from .._urls import URL
from .base import ResponseStream, Transport

__all__ = ["Connection", "open_connection"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good little reminder here that we should refactor Connection to remove the open_connection helper.

Mentioned in #99.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants