方法属性 | 描述 |
---|---|
environ | wsgi 环境 |
path | 访问的url |
full_path | 访问的url |
script_root | 访问的url |
url | 访问的url |
base_url | 访问的url |
url_root | 访问的url |
accept_charsets | 客户端支持的字符集 |
accept_encodings | 客户端支持的编码 |
accept_languages | 客户端接受的语言 |
accept_mimetypes | 客户端接受的文件类型 |
access_route | |
classmethod application(f) | |
args | 解析url ?号后的查询字符串,get方法 |
authorization | |
blueprint | |
cache_control | |
close() | |
content_encoding | |
content_length | |
content_md5 | |
content_type | 文本类型 |
cookies | |
data | 将请求的数据作为字符串,如果不清楚mimetype |
date | |
dict_storage_class | |
endpoint | |
files | 上传的文件 |
form | 解析从post或put发送的表单对象 |
form_data_parser_class | |
classmethod from_values(*args, **kwargs) | |
get_data(cache=True, as_text=False, parse_form_data=False) | |
get_json(force=False, silent=False, cache=True) | |
headers | 请求头 |
host | |
host_url | |
if_match | |
if_modified_since | |
if_none_match | |
if_range | |
if_unmodified_since | |
is_json | |
is_multiprocess | |
is_multithread | |
is_run_once | |
is_secure | |
is_xhr | |
json | 获得json数据 |
list_storage_class | |
make_form_data_parser() | |
max_content_length | |
max_forwards | |
method | 请求的方法 |
mimetype | 类似于content_type |
mimetype_params | |
on_json_loading_failed(e) | |
parameter_storage_class | |
pragma | |
query_string | url参数 |
range | |
referrer | |
remote_addr | ip |
remote_user | |
routing_exception = None | |
scheme | |
stream | |
url_charset | |
url_rule = None | |
user_agent | 客户端浏览器 |
values | args和form的集合 |
view_args = None | |
want_form_data_parsed |
flask request类
最新推荐文章于 2023-02-08 13:54:06 发布