zoukankan      html  css  js  c++  java
  • addValue:forHTTPHeaderField:

    一直不理解 addValue:forHTTPHeaderField:是来做什么的,看了下面的文章的才理解了。

    以下摘自:http://blog.csdn.net/tianxinet/article/details/964993,非常感谢作者!

    http头的组成:

    ==============

     HTTP头字段包括4类:

           general-header ;

         request-header ;

           response-header ;

         entity-header .

    *******************************************************************************

     General Header Fields

    =============================

       general header是request、response都可用的, 但是不能用于entity.

           -- Cache-Control

           -- Connection

           -- Date

           -- Pragma

           -- Trailer

           -- Transfer-Encoding

           -- Upgrade

           -- Via

           -- Warning

    *******************************************************************************

     Request Header Fields

    ======================

       request-header fields 允许客户端传递关于request和客户端的附加信息到服务端,

           -- Accept

           -- Accept-Charset

           -- Accept-Encoding

           -- Accept-Language

           -- Authorization

           -- Expect

           -- From

           -- Host

           -- If-Match

           -- If-Modified-Since

           -- If-None-Match

           -- If-Range

           -- If-Unmodified-Since

           -- Max-Forwards

           -- Proxy-Authorization

           -- Range

           -- Referer

           -- TE

           -- User-Agent

    *******************************************************************************

      Response Header Fields

    ===============================

       response-header fields 允许服务端传递关于response的、不能放到Status-Line的附加信息。

       这些头给出关于服务端的信息。  

          -- Accept-Ranges

          -- Age

          -- ETag

          -- Location

          -- Proxy-Authenticate

          -- Retry-After

          -- Server

          -- Vary

          -- WWW-Authenticate

    *******************************************************************************

     Entity Header Fields

    ========================

       Entity-header fields 定义关于entity-body的metainformation(标题字段数据),

       如果当前没有body, 则定义被request确定的资源信息.

       一些metainformation是可选的; 一些是必须的。

           -- Allow

           -- Content-Encoding

           -- Content-Language

           -- Content-Length

           -- Content-Location

           -- Content-MD5

           -- Content-Range

           -- Content-Type

           -- Expires

           -- Last-Modified

           -- extension-header

  • 相关阅读:
    c/c++ linux 进程间通信系列7,使用pthread mutex
    c/c++ linux 进程间通信系列6,使用消息队列(message queue)
    c/c++ linux 进程间通信系列5,使用信号量
    eos 创建两对的公钥和私钥, 钱包,交易所转账到主网,主网到交易所
    c/c++ linux 进程间通信系列4,使用共享内存
    python基础-网络编程part02
    idea新建项目相关名词意义
    idea中当前模块资源目录上显示属于其他模块
    centos下安装rabbitmq
    JAVA中值传递,引用传递
  • 原文地址:https://www.cnblogs.com/wangxiaorui/p/5029187.html
Copyright © 2011-2022 走看看