Skip to content

[Http Client] Client resolution #7658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

joheredi
Copy link
Member

@joheredi joheredi commented Jun 16, 2025

This PR promotes the core client resolution logic from TCGC into @typespec/http-client. I have added a docs section under packages/http-client/docs with conceptual descriptions of the algorithms used for calculation (based on TCGC docs) and practical how-to showing how to use the new APIs

This PR includes:

  • Client Detection
    • Implicit detection
    • Explicit @client
  • Client Initialization
    • Implicit initialization
  • Method Detection
    • Implicit method detection
  • Type detection - Collect all types to be emitted
  • Porting JS Client emitter to use the new APIs

Follow up work:

  • @clientName
  • Anonymous Type Name Calculation

Copy link
Contributor

❌ There is undocummented changes. Run chronus add to add a changeset or click here.

The following packages have changes but are not documented.

  • @typespec/http-client-js
  • @typespec/http-client
Show changes

@joheredi joheredi mentioned this pull request Jun 16, 2025
19 tasks
@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

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