question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a ResponseType enum for the HttpClient?

See original GitHub issue

I changed the name of the issue title. See design suggestion at end of thread.

https://stackoverflow.com/questions/59256797/replacement-for-responsecontenttype-in-angular-8?noredirect=1#comment104723377_59256797

Something like HttpClient.ReponseTypeBlob?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:47 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
fireflysemanticscommented, Dec 13, 2019

Great conversation. Thanks for engaging!

1reaction
Airbladercommented, Dec 13, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found