Skip to content

通用 Api

getHeader

  • 含义:获取请求头
  • 请求类型:post
  • 所传参数:
    参数名参数类型备注
    headerString-

💡 想要获取哪一个请求头的信息,header 就传入什么,如果传入参数为空,则返回所有。

getParams

  • 含义:获取 get 请求中,通过 params 方式所传递的参数信息
  • 请求类型:get
  • 所传参数:
    参数名参数类型备注
    ---

💡 正常通过 params 传参即可。

getBody

  • 含义:获取 post 请求中,通过 body 方式所传递的参数信息
  • 请求类型:post
  • 所传参数:
    参数名参数类型备注
    ---

💡 正常通过 body 传参即可。

Released under the MIT License.