@Test public void fetchesDuplicateQueryParams() throws Exception { final HttpRequest request = HttpRequestMocker.toRequest( "GET /test.html?first=one&second=two&first=three HTTP/1.1\nHost:local\nAccept:text/plain\n\nbody" ); MatcherAssert.assertThat( request.parameters().get("first"), Matchers.allOf( Matchers.<String>iterableWithSize(2), Matchers.hasItems("one", "three") ) ); MatcherAssert.assertThat( request.parameters().get("second"), Matchers.hasItem("two") ); }
public Map<String, Collection<String>> parameters() { return Collections.unmodifiableMap(this.parms); }
HttpRequest { public Map<String, Collection<String>> parameters() { return Collections.unmodifiableMap(this.parms); } }
HttpRequest { public Map<String, Collection<String>> parameters() { return Collections.unmodifiableMap(this.parms); } HttpRequest(@NotNull final Socket socket); }
HttpRequest { public Map<String, Collection<String>> parameters() { return Collections.unmodifiableMap(this.parms); } HttpRequest(@NotNull final Socket socket); Map<String, Collection<String>> headers(); Map<String, Collection<String>> parameters(); URI requestUri(); String method(); Range range(); }
HttpRequest { public Map<String, Collection<String>> parameters() { return Collections.unmodifiableMap(this.parms); } HttpRequest(@NotNull final Socket socket); Map<String, Collection<String>> headers(); Map<String, Collection<String>> parameters(); URI requestUri(); String method(); Range range();  }