Documentation ¶
Index ¶
Constants ¶
View Source
const ( RequestRedirectError = "error" RequestRedirectFollow = "follow" RequestRedirectManual = "manual" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Request ¶
type Request struct { Body string Method string Redirect string Header http.Header URL *url.URL RemoteAddr string }
Request is the request object used by fetch
type RequestInit ¶
type RequestInit struct { Body string `json:"body"` Headers map[string]string `json:"headers"` Method string `json:"method"` Redirect string `json:"redirect"` }
RequestInit is the fetch API defined object. Only supports raw request now.
Click to show internal directories.
Click to hide internal directories.