Interface HeaderCollector

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 HeaderCollector
HeaderCollector接口用于收集HTTP请求头信息 该接口定义了一个函数式接口,用于获取请求头的键值对映射
Author:
Kerbores(kerbores@riemann.tech)
  • Method Summary

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

    • headers

      Map<String,Object> headers()
      获取HTTP请求头信息
      Returns:
      包含所有请求头信息的键值对映射键为请求头名称,值为对应的请求头值