Skip to content

Making HTTP requests from Blazor apps #10397

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

Closed
danroth27 opened this issue May 20, 2019 · 2 comments
Closed

Making HTTP requests from Blazor apps #10397

danroth27 opened this issue May 20, 2019 · 2 comments
Assignees
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly Needs: Design This issue requires design work before implementating.

Comments

@danroth27
Copy link
Member

danroth27 commented May 20, 2019

There are a number of rough edges with the current support in Blazor for making HTTP requests:

  • How to configure the HttpClient provided from DI? To add custom headers, etc. ([Question] - Blazor - setting up HttpClient default request headers #10381)
  • Should we be using IHttpClientFactory?
  • HttpClient is provided as a service for client-side Blazor but not server-side Blazor. Lots of folks are jumping through hoops to setup the same HttpClient service for server-side Blazor. Wat is our guidance here?
  • What's the plan for the JSON helpers for HttpClient?
@danroth27 danroth27 added Needs: Design This issue requires design work before implementating. enhancement This issue represents an ask for new feature or an enhancement to an existing one area-blazor Includes: Blazor, Razor Components labels May 20, 2019
@guardrex
Copy link
Contributor

I took a stab at this (admittedly more client-side than server-side at this time) ... but it's 50-50 .... 50% chance I did some good work there and a 50% chance that a lightening bolt from the gods is going to hit me any second!

Blazor call web API topic with sample (aspnet/AspNetCore.Docs #12477)

@mkArtakMSFT
Copy link
Contributor

Closing this as the only item left here will be tracked as part of #16929

@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly Needs: Design This issue requires design work before implementating.
Projects
None yet
Development

No branches or pull requests

3 participants