是否禁用长连接
export const option = {
http: {
disableKeepAlives: true
}
}
是否丢弃回包
export const option = {
http: {
discardResponseBody: true
}
}
http 请求头
export const option = {
http: {
headers: {
'key': 'value'
}
}
}
是否启用 HTTP2
export const option = {
http: {
http2: true
}
}
单个 VU 最大活跃连接数
export const option = {
http: {
maxIdleConns: 50
}
}
单个 VU 单个域名最大活跃连接数
export const option = {
http: {
maxIdleConnsPerHost: 10
}
}
http 重定向跳转次数
export const option = {
http: {
maxRedirects: 5
}
}
请求超时时间,单位毫秒
export const option = {
http: {
timeout: 3000
}
}
HTTP Basic authentication