Skip to content
#

mock-server

Here are 483 public repositories matching this topic...

piyushgupta243
piyushgupta243 commented Nov 2, 2021

Issue

The response header does not reflect the correct version for HTTP2 requests. Even though, wiremock replies in h2 but the version in the response header shows "HTTP/1.1 200". This is caused by the hardcoded value in the toString() method of Response.java class

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        **sb.append("HTTP

MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).

  • Updated Dec 25, 2021
  • Java
rohanKanojia
rohanKanojia commented May 24, 2021

We're already on Java 8 and we can use this diamond operator which was introduced in Java 7. Yet, there are lots of occurrences in code where we're still not using it. For more information about this, see this Sonar rule[0]

In case anyone is interested in fixing this, you can check all the occurrences where diamond operator could be used here[1]

[0] https://sonarcloud.io/organizations/fabric

Improve this page

Add a description, image, and links to the mock-server topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mock-server topic, visit your repo's landing page and select "manage topics."

Learn more