mockwebserver / okhttp3.mockwebserver / MockResponse / http2ErrorCode

http2ErrorCode

var http2ErrorCode: Int

Sets the HTTP/2 error code to be returned when resetting the stream. This is only valid with SocketPolicy.RESET_STREAM_AT_START.

Setter

Sets the HTTP/2 error code to be returned when resetting the stream. This is only valid with SocketPolicy.RESET_STREAM_AT_START.