Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openapi-generators/openapi-python-client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: kwardega-sc/openapi-python-client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 62 files changed
  • 1 contributor

Commits on Mar 26, 2026

  1. feat: Add per-request headers, timeout, and auth overrides to endpoin…

    …t functions
    
    Adds optional `headers`, `timeout`, and `auth` keyword arguments to all
    generated endpoint functions (sync_detailed, asyncio_detailed, sync, asyncio).
    These are forwarded directly to the underlying httpx `.request()` call,
    allowing per-request overrides without creating a new client instance or
    disrupting the shared connection pool.
    
    `with_headers()` and `with_timeout()` mutate the original client's underlying
    httpx client as a side effect and cause the returned client to open a new
    connection pool on first use, making them unsafe for runtime per-request use
    (especially in concurrent async code). This change provides the correct
    alternative.
    
    Known limitation: client-level headers cannot be removed for a single request;
    they can only be overridden with a different value.
    kwardega-sc committed Mar 26, 2026
    Configuration menu
    Copy the full SHA
    8a642c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8210bf1 View commit details
    Browse the repository at this point in the history
Loading