Create a ResponseType enum for the HttpClient?
See original GitHub issueI changed the name of the issue title. See design suggestion at end of thread.
Something like HttpClient.ReponseTypeBlob?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:47 (20 by maintainers)
Top Results From Across the Web
Angular HttpClient ResponseTyp Error - Stack Overflow
Following error occurs: Argument of type '{ headers: any; responseType: ResponseContentType.Blob; }' is not assignable to parameter ...
Read more >XMLHttpRequest.responseType - Web APIs | MDN
The XMLHttpRequest property responseType is an enumerated string value specifying the type of data contained in the response.
Read more >ResponseType - ts - API - Angular
Class Description. Acceptable response types to be associated with a Response , based on ResponseType from the Fetch spec.
Read more >Minimal APIs quick reference - Microsoft Learn
For an introduction, see Tutorial: Create a minimal web API with ASP.NET Core ... contentType, header with the name "Content-Type" ...
Read more >HttpClient class - dart:io library - Dart API
Making a simple GET request: an example. A getUrl request is a two-step process, triggered by two Futures. · HTTPS connections. An HttpClient...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Great conversation. Thanks for engaging!
Not really, the issue is about exposing some type of constants for the values, not about changing the signature of all HttpClient methods. But I think I’ll sign off here since everything I have to say has been said.