简体   繁体   English

Django request.META 是什么

[英]what Django request.META is

I read a lot of articles about request.META but I didn't understand anything about it and what it does.我阅读了很多关于request.META的文章,但我对它以及它的作用一无所知。 Can anyone explain it?谁能解释一下?

request.META contains all the metadata of the HTTP request that is coming to your Django server, it can contain the user agent, ip address, content type, and so on. request.META包含到达 Django 服务器的 HTTP 请求的所有元数据,它可以包含用户代理、IP 地址、内容类型等。

Please read the official docs before asking for something in here: https://docs.djangoproject.com/en/4.0/ref/request-response/#django.http.HttpRequest.META请在此处询问之前阅读官方文档: https ://docs.djangoproject.com/en/4.0/ref/request-response/#django.http.HttpRequest.META

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM