Interface UserAgentProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface UserAgentProvider
UserAgentProvider接口定义了一个函数式接口,用于提供用户代理相关的HTTP头部信息。 该接口的主要作用是获取包含User-Agent等浏览器标识信息的HTTP头部键值对集合。
  • Method Summary

    Modifier and Type
    Method
    Description
    获取HTTP请求头信息映射表
  • Method Details

    • headers

      Map<String,String> headers()
      获取HTTP请求头信息映射表
      Returns:
      包含HTTP头部键值对的映射表,其中键为头部名称,值为对应的头部值,通常包含User-Agent等浏览器标识信息