Amagi API 文档 - v5.6.3
    正在准备搜索索引...

    类型别名 NetworksConfigType

    type NetworksConfigType = {
        url: string;
        method?: string;
        headers?: any;
        responseType?: string;
        body?: object | string;
        timeout?: number;
        redirect?: RequestRedirect;
        methodType?: string;
    }
    索引

    属性

    url: string

    请求地址

    method?: string

    请求方法

    headers?: any

    请求头

    responseType?: string

    返回数据类型,默认json

    body?: object | string

    请求体

    timeout?: number

    超时时间,单位毫秒

    redirect?: RequestRedirect

    默认跟随重定向到: 'follow',不跟随: manual

    methodType?: string

    拓展参数,该次请求数据什么数据类型,注意是平台接口的类型定义,不是请求参数