Skip to content

Support HTTP Backends#175

Merged
phalt merged 6 commits into1.7.0from
http-backends
Jan 16, 2026
Merged

Support HTTP Backends#175
phalt merged 6 commits into1.7.0from
http-backends

Conversation

@phalt
Copy link
Copy Markdown
Owner

@phalt phalt commented Jan 16, 2026

Change summary

Introduces HTTP Backends as a new concept.
Fully backwards compatible.

Related issue(s)

#172 is the discussion where this is being considered.

Pull request tasks

The following have been completed for this task:

  • Code changes
  • Tests written
  • Documentation changes for new or changed features
  • Pre-review preparation
    • make test
    • make format
    • make ty
    • make generate-test-clients
      • Test clients have changed because a new feature was introduced
      • Test clients remain the same
  • Changelog updated
  • Contributors updated

@phalt phalt changed the title Http Backends Support HTTP Backends Jan 16, 2026
@phalt phalt marked this pull request as ready for review January 16, 2026 13:18
@phalt phalt merged commit c4608a3 into 1.7.0 Jan 16, 2026
5 checks passed
@phalt phalt deleted the http-backends branch January 16, 2026 15:20
self._sync_client = sync or httpx.Client(**self.client_options)
self._async_client = async_client or httpx.AsyncClient(**self.client_options)

def build_client(self) -> httpx.Client:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The naming of this doesn't make sense. The client is actually built on 31, this just returns it.

async_client: httpx.AsyncClient | None = None,
) -> None:
self.client_options = client_options or {}
self._sync_client = sync or httpx.Client(**self.client_options)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be eager, or should it be just in time when the client is called for the first time?

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