1
0
mirror of https://github.com/square/okhttp.git synced 2025-07-31 05:04:26 +03:00
Files
okhttp/okhttp-testing-support
Tobias Gesellchen 286623ac57 Add support for HTTP/1.1 connection upgrades (#8969)
* Give the CountDownLatch something to count

* Fix typo

* Connection Upgrade for HTTP1 status code 101

See https://datatracker.ietf.org/doc/html/rfc9110#name-101-switching-protocols

* use socket.asOkioSocket()

* add socket to api

* remove the specific check on tcp connection upgrades

* create a dedicated HttpUpgradesTest

* chore

* add more test cases

* spotlessApply

* Use more MockWebServer features in tests

* Forbid HTTP/2

* Hook into Exchange for connection pool management

* Test events on successful upgrade

* Release the request body after an upgrade fails

* Upgrades don't promise a response body

* SpotlessApply

---------

Co-authored-by: Jesse Wilson <jwilson@squareup.com>
2025-07-28 10:39:28 -04:00
..

OkHttp Testing Support

This module offers utilities and support for testing OkHttp itself. It's not intended for use by other projects or consumers of the OkHttp library.