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