docs
docs copied to clipboard
comment in code example doesn't match the docs for the IHttpClientFactory
Type of issue
Typo
Description
In the section for the Generated clients the docs says
A typed client can be added, using Refit to generate the implementation
And the code example underneath it says its a named client when setting the base address
builder.Services.AddRefitClient<ITodoService>()
.ConfigureHttpClient(client =>
{
// Set the base address of the named client.
client.BaseAddress = new Uri("https://jsonplaceholder.typicode.com/");
// Add a user-agent default request header.
client.DefaultRequestHeaders.UserAgent.ParseAdd("dotnet-docs");
});
Page URL
https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-factory
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/extensions/httpclient-factory.md
Document Version Independent Id
33db41be-42f9-bb94-65fe-0cf7d1c64f12
Platform Id
c667850f-a5ec-d80b-d8af-0c1c1e37e599
Article author
@IEvangelist
Metadata
- ID: 46af0b96-2d12-9cac-2f8f-15eb49d0292d
- PlatformId: c667850f-a5ec-d80b-d8af-0c1c1e37e599
- Service: dotnet-fundamentals