Skip to content

MockWebServer HTTP/2 full support #4193

@manusa

Description

@manusa

Description

Currently MockWebServer has partial support for HTTP/2 but provides incomplete handshakes. This seems to work for OkHttp, but not for other client implementations.

Provide an MockWebServer alternative with better support for HTTP/2

  • Implement a proper handshake response
    • onStream(Http2Stream stream)
    • readRequest(Http2Stream stream)
  • Remove hardcoded HTTP/1.1 protocol in the RecordedRequest

MockWebServer is final, however, maybe intercepting PRI method requests can help us deal with the problem.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions