public class HttpUtil extends Object
文件名:HttpUtil.java
用途: 定义接口调试常用的工具方法
编码时间:2022年8月4日 下午4:53:15
修改时间:2022年8月4日 下午4:53:15
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
formUrlencoded2Extract(List<Entry<String,Object>> dataList)
该方法用于对X_WWW_FORM_URLENCODED表单类型的请求体进行拼接,转换成相应的表达式
|
static List<InterfaceInfo> |
harFile2InterfaceInfo(File harFile,
ResourceType... resourceTypes)
该方法用于读取Har文件中的接口信息,并将其转换为接口信息类对象的方法
|
public static List<InterfaceInfo> harFile2InterfaceInfo(File harFile, ResourceType... resourceTypes)
harFile
- Har文件resourceTypes
- 需要保留的接口类型,不传则保留所有类型接口Copyright © 2024. All rights reserved.