Skip to content

[Step 2] Core: Transport Layer Base URL Instantiation #930

@fderuiter

Description

@fderuiter

Context

Transport clients must natively understand the base URL for relative path support, removing manual concatenation in requests.


🗺️ Execution Plan

  • Review BaseClient in src/imednet/core/base_client.py and Client in src/imednet/core/client.py (plus async equivalents).
  • Ensure httpx.Client and httpx.AsyncClient are instantiated with base_url=self.base_url.

✅ Definition of Done (Acceptance Criteria)

  • httpx.Client explicitly includes the base_url argument.
  • httpx.AsyncClient explicitly includes the base_url argument.
  • Client .get() and .post() accept relative paths with no manual string prefixing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions