/** * @return The content type of the response */ public String getContentType() { return this.httpResponse.headers().firstValue(CONTENT_TYPE).orElse(""); }
/** * Retrieves a specific header with the given name * * @param name The name of the header * @return The value of the header or an empty string if not found */ public String getHeader(String name) { return this.httpResponse.headers().firstValue(name).orElse(""); } }