Skip to content

Introduce transports as a module - #121

Merged
cgl merged 1 commit into
mainfrom
refactor/package-transports
Nov 2, 2026
Merged

cgl merged 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)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Do we have a related issue?

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.

@cgl
cgl force-pushed the refactor/package-transports branch from c84e8f3 to d9bd9fb Compare November 2, 2026 15:06
@cgl
cgl force-pushed the refactor/package-transports branch from d9bd9fb to bce08ae Compare November 2, 2026 15:14
@cgl
cgl merged commit 6636077 into main Nov 2, 2026
5 checks passed
@cgl
cgl deleted the refactor/package-transports branch November 2, 2026 15:27
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