mirror of
https://github.com/square/okhttp.git
synced 2025-07-31 05:04:26 +03:00
* Replace SocketPolicy with a new type, SocketEffect SocketPolicy encapsulated two things: - a trigger (request start, response body, etc) - an effect (close the socket, close the stream, stall, etc.) It also had some special cases for effects like failing the TLS handshake. With this PR there's a new class, SocketEffect, that determines what to do. It's assigned to one of 5 fields for different triggers. # Conflicts: # mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt * apiDump * Track API change * Track more API changes * Spotless --------- Co-authored-by: Jesse Wilson <jwilson@squareup.com>