r/angular • • 8h ago

πŸš€ New HTTP QUERY Explained & Angular 22.3 HttpClient.query()

https://youtu.be/1uKuw5a9tPI

The HTTP QUERY method is now supported in Angular v22.3

24 Upvotes

6 comments sorted by

10

u/Responsible-Cold-627 7h ago

What's there to explain? It abides by the rules of GET, but with support for a request body. That's literally it.

3

u/best_of_badgers 5h ago

GET also has support for a request body per the spec, but it’s inconsistently implemented

4

u/toasterboi0100 5h ago

Yea, but JS can't do GET with a body, so as far as this sub is concerned, GET cannot have a body.

2

u/xinhuj 5h ago

This is a nice feature. I will be experimenting with it. We've definitely written our share of "POST GETs" when the query params got extremely large.

2

u/BlueMooseOnFire 4h ago

Woo glad this got added!