Skip to content
RequestInit

玩法 / RequestInit

RequestInit Interface

HTTP请求信息的对象

Table of contents

Properties

body: string
HTTP请求体
headers: Object
HTTP请求头
method: "GET" "POST" "PUT"
HTTP请求类型

Properties

body

Optional body: string

HTTP请求体


headers

Optional headers: Object

HTTP请求头

Index signature

▪ [key: string]: string


method

Optional method: "GET" "POST" "PUT"

HTTP请求类型