Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad Call NameLoad Str Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore BinOpMod Str SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Return NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad Call AttributeLoad Call NameLoad NameLoad attr Str Index Num attr attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad Call NameLoad NameLoad keyword Str keyword Str attr Str Index Num attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Str orelse If CompareIn Str Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str orelse If CompareIn Str Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Str orelse Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad
N/A N/A 
This module implements a class which returns the appropriate Response class
based on different criteria.
 __future__ absolute_import mimetypes MimeTypes pkgutil get_data io StringIO N/A six scrapy.http Response scrapy.utils.misc load_object scrapy.utils.python binary_is_text to_bytes to_native_str ResponseTypes N/A object N/A N/A CLASSES N/A text/html application/atom+xml application/rdf+xml application/rss+xml application/xhtml+xml application/vnd.wap.xhtml+xml application/xml application/json application/x-json application/javascript application/x-javascript text/xml text/* scrapy.http.HtmlResponse scrapy.http.XmlResponse scrapy.http.XmlResponse scrapy.http.XmlResponse scrapy.http.HtmlResponse scrapy.http.HtmlResponse scrapy.http.XmlResponse scrapy.http.TextResponse scrapy.http.TextResponse scrapy.http.TextResponse scrapy.http.TextResponse scrapy.http.XmlResponse scrapy.http.TextResponse __init__ N/A N/A self N/A N/A N/A N/A self classes N/A N/A N/A self mimetypes N/A MimeTypes N/A mimedata N/A N/A N/A get_data scrapy mime.types decode utf8 N/A N/A N/A N/A self mimetypes readfp N/A StringIO mimedata N/A N/A mimetype cls N/A N/A six iteritems N/A self CLASSES N/A N/A N/A N/A self classes N/A mimetype N/A load_object cls N/A from_mimetype N/A N/A self mimetype N/A N/A N/A Return the most appropriate Response class for the given mimetype N/A N/A mimetype None N/A N/A Response N/A N/A N/A mimetype N/A self classes N/A N/A N/A N/A self classes N/A mimetype N/A N/A basetype N/A %s/* N/A N/A N/A mimetype split / N/A 0 N/A N/A N/A N/A self classes get basetype Response N/A from_content_type N/A N/A self content_type content_encoding N/A None N/A N/A Return the most appropriate Response class from an HTTP Content-Type
        header  N/A content_encoding N/A N/A Response N/A mimetype N/A N/A N/A N/A N/A N/A N/A N/A to_native_str content_type split ; N/A 0 strip lower N/A N/A N/A self from_mimetype mimetype N/A from_content_disposition N/A N/A self content_disposition N/A N/A N/A N/A N/A filename N/A N/A N/A N/A N/A N/A N/A to_native_str content_disposition encoding latin-1 errors replace split ; N/A 1 split = N/A 1 N/A filename N/A N/A filename strip "' N/A N/A N/A self from_filename filename N/A N/A N/A IndexError N/A N/A Response N/A from_headers N/A N/A self headers N/A N/A N/A Return the most appropriate Response class by looking at the HTTP
        headers N/A cls Response N/A N/A Content-Type headers N/A N/A cls N/A N/A self from_content_type content_type N/A headers N/A Content-type content_encoding N/A N/A headers get Content-Encoding N/A N/A N/A cls Response N/A Content-Disposition headers N/A N/A cls N/A N/A self from_content_disposition N/A headers N/A Content-Disposition N/A cls N/A from_filename N/A N/A self filename N/A N/A N/A Return the most appropriate Response class from a file name N/A N/A mimetype encoding N/A N/A N/A self mimetypes guess_type filename N/A N/A mimetype N/A encoding N/A N/A N/A N/A self from_mimetype mimetype N/A N/A Response N/A from_body N/A N/A self body N/A N/A N/A Try to guess the appropriate response based on the body content.
        This method is a bit magic and could be improved in the future, but
        it's not meant to be used except for special cases where response types
        cannot be guess using more straightforward methods. N/A chunk N/A body N/A 5000 N/A chunk N/A to_bytes chunk N/A N/A N/A binary_is_text chunk N/A N/A N/A N/A self from_mimetype application/octet-stream N/A N/A N/A <html> N/A N/A chunk lower N/A N/A N/A N/A self from_mimetype text/html N/A N/A N/A <?xml N/A N/A chunk lower N/A N/A N/A N/A self from_mimetype text/xml N/A N/A N/A N/A self from_mimetype text N/A from_args N/A N/A self headers url filename body N/A None None None None N/A N/A Guess the most appropriate Response class based on
        the given arguments. N/A cls Response N/A N/A headers None N/A N/A cls N/A N/A self from_headers headers N/A N/A N/A cls Response N/A url None N/A N/A cls N/A N/A self from_filename url N/A N/A N/A cls Response N/A filename None N/A N/A cls N/A N/A self from_filename filename N/A N/A N/A cls Response N/A body None N/A N/A cls N/A N/A self from_body body N/A cls N/A N/A N/A responsetypes N/A ResponseTypes