Bhumika Rupera
07/03/2024, 1:23 PMnew WireMockServer(options().bindAddress(inetAddress.getHostAddress()).port(TestsConfiguration.Port)
.useChunkedTransferEncoding(ChunkedEncodingPolicy.NEVER)
But even after setting this, i am getting chunked response, which can't be processed by the webTarget that I am using as my client.
But instead when i force my webTarget to use http 1.1, everything works fine, i think the issue is because the requests gets upgraded to http 2. So, how can I force wiremock to use http 1.1 only?
I reffered the documentation - https://wiremock.org/docs/configuration/#:~:text=options%3B%20WireMockServer%20wm%20%3D%20new%20WireMockServer,override%20for%20should%20be%20specified
it mentions to set option -
// Disable HTTP/2 over HTTP
.http2PlainDisabled(true);
But when i try to use it via options - it does not resolve method http2PlainDisabled(), the method related to http that i found is
public WireMockConfiguration httpDisabled(boolean httpDisabled) {
this.httpDisabled = httpDisabled;
return this;
}
But I am not sure what it does.
Can someone help me here?Lee Turner
07/03/2024, 1:37 PMhttpDisabled
disables the HTTP listener and is only available only if HTTPS is enabled.
I would have expected .http2PlainDisabled(true);
to have worked here but I might be misunderstanding what that option does.Bhumika Rupera
07/03/2024, 1:53 PMLee Turner
07/03/2024, 2:18 PMBhumika Rupera
07/05/2024, 6:19 AMLee Turner
07/05/2024, 7:06 AM