fabric8io / mockwebserver

An extension of okhttp's mockwebserver, that provides a DSL and is easier to use
Apache License 2.0
113 stars 38 forks source link

Add `OPTIONS` and `CONNECT` to `HttpMethod` #79

Closed ikhoon closed 9 months ago

ikhoon commented 10 months ago

HttpMethod does not have the standard OPTIONS which can be used CORS and HTTP/2 Upgrade. https://datatracker.ietf.org/doc/html/rfc7540#section-3.2

an OPTIONS request can be used to perform the upgrade to HTTP/2, at the cost of an additional round trip.