@property
    def filename(self):
        default_filename = self.uri.path.segments[-1]
        try:
            content_type = dict(
                _.strip().partition("=")[0::2]
                for _ in self.__response.getheader("Content-Disposition").split(";")
            )
        except AttributeError:
            return default_filename
        return content_type.get("filename", default_filename)
This is a replacer method called by `re.sub` with the matched
dataset/ETHPy150Open nigelsmall/httpstream/httpstream/http.py/Response.filename--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/utils/ansi.py/ANSIParser.sub_xterm256