@Test public void setsHostHeaderFromAuthorityIfSet() { LiveHttpRequest request = get("http: assertThat(request.header(HOST), isValue("www.hotels.com")); }
public static Builder get(String uri) { return new Builder(GET, uri); }
LiveHttpRequest implements LiveHttpMessage { public static Builder get(String uri) { return new Builder(GET, uri); } }
LiveHttpRequest implements LiveHttpMessage { public static Builder get(String uri) { return new Builder(GET, uri); } LiveHttpRequest(Builder builder); }
LiveHttpRequest implements LiveHttpMessage { public static Builder get(String uri) { return new Builder(GET, uri); } LiveHttpRequest(Builder builder); static Builder get(String uri); static Builder head(String uri); static Builder post(String uri); static Builder delete(String uri); static Builder put(String uri); static Builder patch(String uri); static Builder post(String uri, ByteStream body); static Builder put(String uri, ByteStream body); static Builder patch(String uri, ByteStream body); @Override HttpVersion version(); @Override HttpHeaders headers(); @Override List<String> headers(CharSequence name); @Override ByteStream body(); Object id(); HttpMethod method(); Url url(); String path(); boolean keepAlive(); Optional<String> queryParam(String name); Iterable<String> queryParams(String name); Map<String, List<String>> queryParams(); Iterable<String> queryParamNames(); Transformer newBuilder(); Eventual<HttpRequest> aggregate(int maxContentBytes); Set<RequestCookie> cookies(); Optional<RequestCookie> cookie(String name); @Override String toString(); }
LiveHttpRequest implements LiveHttpMessage { public static Builder get(String uri) { return new Builder(GET, uri); } LiveHttpRequest(Builder builder); static Builder get(String uri); static Builder head(String uri); static Builder post(String uri); static Builder delete(String uri); static Builder put(String uri); static Builder patch(String uri); static Builder post(String uri, ByteStream body); static Builder put(String uri, ByteStream body); static Builder patch(String uri, ByteStream body); @Override HttpVersion version(); @Override HttpHeaders headers(); @Override List<String> headers(CharSequence name); @Override ByteStream body(); Object id(); HttpMethod method(); Url url(); String path(); boolean keepAlive(); Optional<String> queryParam(String name); Iterable<String> queryParams(String name); Map<String, List<String>> queryParams(); Iterable<String> queryParamNames(); Transformer newBuilder(); Eventual<HttpRequest> aggregate(int maxContentBytes); Set<RequestCookie> cookies(); Optional<RequestCookie> cookie(String name); @Override String toString();  }