@Test public void rejectsMultipleContentLengthInSingleHeader() { assertThrows(IllegalArgumentException.class, () -> response() .addHeader(CONTENT_LENGTH, "15, 16") .ensureContentLengthIsValid() .build()); }
public static Builder response() { return new Builder(); }
LiveHttpResponse implements LiveHttpMessage { public static Builder response() { return new Builder(); } }
LiveHttpResponse implements LiveHttpMessage { public static Builder response() { return new Builder(); } LiveHttpResponse(Builder builder); }
LiveHttpResponse implements LiveHttpMessage { public static Builder response() { return new Builder(); } LiveHttpResponse(Builder builder); static Builder response(); static Builder response(HttpResponseStatus status); static Builder response(HttpResponseStatus status, ByteStream body); @Override HttpHeaders headers(); @Override ByteStream body(); @Override HttpVersion version(); Transformer newBuilder(); HttpResponseStatus status(); boolean isRedirect(); Eventual<HttpResponse> aggregate(int maxContentBytes); Set<ResponseCookie> cookies(); Optional<ResponseCookie> cookie(String name); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
LiveHttpResponse implements LiveHttpMessage { public static Builder response() { return new Builder(); } LiveHttpResponse(Builder builder); static Builder response(); static Builder response(HttpResponseStatus status); static Builder response(HttpResponseStatus status, ByteStream body); @Override HttpHeaders headers(); @Override ByteStream body(); @Override HttpVersion version(); Transformer newBuilder(); HttpResponseStatus status(); boolean isRedirect(); Eventual<HttpResponse> aggregate(int maxContentBytes); Set<ResponseCookie> cookies(); Optional<ResponseCookie> cookie(String name); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }