/** * Returns the value of the {@code 'Content-Type'} header. * * @return content-type if present */ default Optional<String> contentType() { return header(CONTENT_TYPE); }
/** * Return the {@code 'Content-Length'} header value. * * @return the content-length if present */ default Optional<Long> contentLength() { return header(CONTENT_LENGTH).map(Long::valueOf); }