@Override
    public boolean equals(@Nullable Object other) {
        if (this == other) {
            return true;
        }
        if (!(other instanceof ContentDisposition)) {
            return false;
        }
        final ContentDisposition that = (ContentDisposition) other;
        return type.equals(that.type) &&
               Objects.equals(name, that.name) &&
               Objects.equals(filename, that.filename) &&
               Objects.equals(charset, that.charset);
    }
Encodes the given header field param as describe in RFC 5987.

@param input the header field param
@param charset the charset of the header field param string,
               only the US-ASCII, UTF-8 and ISO-8859-1 charsets are supported
@see <a href="https://datatracker.ietf.org/doc/rfc5987/">RFC 5987</a>
core/src/main/java/com/linecorp/armeria/common/ContentDisposition.java