@Test public void fetchesQueryParamsWithNoValue() throws Exception { final HttpRequest request = HttpRequestMocker.toRequest( "GET /test.html?blank&something=yes&nothing HTTP/1.1\nHost:local\nAccept:text/plain\n\nbody" ); MatcherAssert.assertThat( request.parameters().get("blank"), Matchers.hasItem("") ); MatcherAssert.assertThat( request.parameters().get("something"), Matchers.hasItem("yes") ); MatcherAssert.assertThat( request.parameters().get("nothing"), Matchers.hasItem("") ); }
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();  }