zoukankan      html  css  js  c++  java
  • http请求和返回的head字段

    一,
    http请求分请求首部字段,通用首部字段,实体首部字段。
    http响应包含响应首部字段,通用首部字段,实体首部字段。

    二,http1.1定义了47种首部字段。
    1,通用首部字段:
    cache-control:告诉所有的缓存机制是否可以缓存及哪种类型。max-age=0 强制要求服务器返回最新的文件内容。private:只想特定用户返回响应。
    connection:keep-alive 支持长链接,close不支持长链接。
    date: 创建保温的日期
    Transfer-Encoding:chunked 表示数据以一系列分块的形式进行发送。

    2,实体首部字段:
    allow:资源支持的http方法。
    Content-Encoding:实体主体适用的编码方式
    Content-Language:实体主体的自然语言
    Content-Length:实体主体的大小(单位:字节)
    Content-Location:替代对应资源的URI
    Content-Type:实体主体的媒体类型

    3,请求首部字段:
    Accept:用户代理可处理的媒体类型
    Accept-Charset:优先的字符集
    Accept-Encoding:优先的内容编码
    Accept-Language:优先的语言(自然语言)

    4,响应首部字段:
    Location:令客户端重定向至指定URI

    Server:nginx/1.10.3
    X-Powered-By:ThinkPHP
    Cookie
    User-Agent

  • 相关阅读:
    AcWing 204. 表达整数的奇怪方式 / Strange Way To Express Integers
    Codeforces Edu Round 67 A-C + E
    Codeforces Edu Round 66 A-E
    Codeforces Edu Round 65 A-E
    Codeforces Edu Round 64 A-D
    Codeforces Edu Round 63 A-E
    Codeforces Edu Round 62 A-E
    Codeforces Edu Round 61 A-C + F
    python 线程池和锁
    python 线程
  • 原文地址:https://www.cnblogs.com/zhangyabin---acm/p/9005436.html
Copyright © 2011-2022 走看看