square / okhttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM.
https://square.github.io/okhttp/
Apache License 2.0
45.93k stars 9.17k forks source link

Add QUERY method support #8550

Open desiderantes opened 1 month ago

desiderantes commented 1 month ago

Fixes #8380.

This PR adds a new public method, query(RequestBody), to perform a request using the QUERY method. It also enables cache support for QUERY requests.

yschimke commented 1 month ago

It seems like it's still a draft https://datatracker.ietf.org/doc/draft-ietf-httpbis-safe-method-w-body/

But overall, we've added verbs for WebDav https://github.com/square/okhttp/pull/1901

yschimke commented 1 month ago

@swankjesse any objection?

desiderantes commented 1 month ago

Just wanted to note that Node already shipped support for it