You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @property {string} path - Request path. If empty, defaults to `/`.
56
+
* @property {Object.<string, any>} [headers] - List of headers. All entries attempt to be pre-parsed as json/javascript values, otherwise provided as strings.
57
+
* @property {Object.<string, any>} [query] - List of query parameters. All entries attempt to be pre-parsed as json/javascript values, otherwise provided as strings.
58
+
* @property {any} [body] - Request body. Attempts to be pre-parsed as a json/javascript value, otherwise provided as a string.
59
+
* @category Fleek Node API
60
+
*/
61
+
typeHttpRequest={
62
+
method: HttpRequestMethod;
63
+
path: String;
64
+
headers?: Map<string,string>;
65
+
query?: Map<string,any>;
66
+
body?: any;
67
+
};
68
+
69
+
/** Valid header formats for an HTTP response.
70
+
* @category Fleek Node API
71
+
*/
72
+
typeHttpResponseHeaders=
73
+
|Map<string,string>
74
+
|Map<string,string[]>
75
+
|[string,string][]
76
+
|[string,string[]][];
77
+
78
+
/** HTTP Response object. When returned from a function that's requested over http, it will be used to
79
+
* modify the http response. Otherwise, for non-http requests, the raw json object will be sent.
80
+
* @property {Number} code - Status code to use. Must be an unsigned integer that fits inside a u16.
81
+
* @property {Headers} headers - Array or map of header key values
0 commit comments