@Test void contentLength_isZero_ifNoBody() { HttpRequest request = new HttpRequest( URI.create("https: HttpMethod.GET, Collections.emptyList(), null, null); assertThat(request.contentLength()).isZero(); }
@Override public int contentLength() { return (this.content != null) ? this.content.length : 0; }
HttpRequest implements Request { @Override public int contentLength() { return (this.content != null) ? this.content.length : 0; } }
HttpRequest implements Request { @Override public int contentLength() { return (this.content != null) ? this.content.length : 0; } HttpRequest();  HttpRequest(URI uri, HttpMethod method, Collection<Header> headers, RequestOptions options,
      byte[] content); }
HttpRequest implements Request { @Override public int contentLength() { return (this.content != null) ? this.content.length : 0; } HttpRequest();  HttpRequest(URI uri, HttpMethod method, Collection<Header> headers, RequestOptions options,
      byte[] content); @Override URI uri(); @Override byte[] content(); @Override int contentLength(); @Override HttpMethod method(); @Override List<Header> headers(); @Override RequestOptions options(); @Override String toString(); }
HttpRequest implements Request { @Override public int contentLength() { return (this.content != null) ? this.content.length : 0; } HttpRequest();  HttpRequest(URI uri, HttpMethod method, Collection<Header> headers, RequestOptions options,
      byte[] content); @Override URI uri(); @Override byte[] content(); @Override int contentLength(); @Override HttpMethod method(); @Override List<Header> headers(); @Override RequestOptions options(); @Override String toString();  }