org.apache.http.client.protocol

## Class RequestAcceptEncoding

- java.lang.Object
- - org.apache.http.client.protocol.RequestAcceptEncoding

- All Implemented Interfaces:
    HttpRequestInterceptor

      @Contract(threading=IMMUTABLE)
      public class RequestAcceptEncoding
      extends Object
      implements HttpRequestInterceptor

  负责处理HTTP中的内容编码请求的类。

  这个类的实例是无状态的，因此它们是线程安全的和不可变的。

  从以下版本开始：
    4.1
  另请参见：
    “http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5”

- - ### 构造方法摘要

    构造方法
    Constructor and Description
    `RequestAcceptEncoding()`
    `RequestAcceptEncoding(List<String> encodings)`

  - ### 方法摘要

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `process(HttpRequest request, HttpContext context)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造方法详细信息

    - #### RequestAcceptEncoding

          public RequestAcceptEncoding(List<String> encodings)

      从以下版本开始：
        4.4

    - #### RequestAcceptEncoding

          public RequestAcceptEncoding()

  - ### 方法详细信息

    - #### process

          public void process(HttpRequest request,
                     HttpContext context)
                       throws HttpException,
                              IOException

      Specified by:
        `process`接口 `HttpRequestInterceptor`
      异常
        `HttpException`
        `IOException`

Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.

本帮助文档是使用 《谷歌翻译》翻译，请与英文版配合使用 by--QQ:654638585