/** * Return {@code true} if the response is chunked. * * @return {@code true} if the response is chunked */ default boolean chunked() { return HttpMessageSupport.chunked(headers()); } }
/** * Returns the value of the header with the specified {@code name}. * If there is more than one header value for the specified header name, the first value is returned. * * @return the value of the header with the specified {@code name} if present */ default Optional<String> header(CharSequence name) { return headers().get(name); }
/** * Returns the values of the headers with the specified {@code name}. * * @param name the name of the headers * @return A {@link List} of header values which will be empty if no values are found */ default List<String> headers(CharSequence name) { return headers().getAll(name); }