猫史档案馆


奇怪的API又增加了

用户:萌新大佬萌新大佬查看:0 回复:5 评论:0 创建时间:2022-05-30T10:00:38


最近闲的没事在代码里打了个h,然后出现了一个自动补全http,睡着往下翻出了一堆奇怪的API,搞不懂是干啥的,所以放过来跟大家讨论一下

class Box3HttpAPI {
    constructor(url, fetch, onRequest) {
        this.url = url;
        this.fetch = fetch;
        this.onRequest = onRequest;
    }
}
class Box3HttpFetchResponse {
    constructor(status, statusText, json, text, arrayBuffer, close) {
        this.status = status;
        this.statusText = statusText;
        this.json = json;
        this.text = text;
        this.arrayBuffer = arrayBuffer;
        this.close = close;
    }
    get ok() {
        return 200 <= this.status && this.status < 300;
    }
}
class Box3HttpRequest {
}
class Box3HttpResponse {
}


回复

上一页1 页 / 共 1下一页
萌新大佬萌新大佬

dddddd

点赞0


评论


编码喵编码喵

这是一个url请求的api

点赞0


评论


SCS_user_LoeheodVOQSCS_user_LoeheodVOQ

试过了,上面好像说功能暂未实现

点赞0


评论


阳光猫阳光猫

好像很不错的样子,喵d

点赞0


评论


尖端放电尖端放电

溜了溜了()

点赞0


评论