@minecraft/server-net 1.0.0-beta.1.19.80-preview.21 → 1.0.0-beta.1.19.80-preview.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -7
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* ```json
|
|
18
18
|
* {
|
|
19
19
|
* "module_name": "@minecraft/server-net",
|
|
20
|
-
* "version": "1.0.0-beta.1.19.80-preview.
|
|
20
|
+
* "version": "1.0.0-beta.1.19.80-preview.23"
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
@@ -61,7 +61,6 @@ export class HttpClient {
|
|
|
61
61
|
/**
|
|
62
62
|
* @remarks
|
|
63
63
|
* Cancels all pending requests.
|
|
64
|
-
* @param reason
|
|
65
64
|
*/
|
|
66
65
|
cancelAll(reason: string): void;
|
|
67
66
|
/**
|
|
@@ -130,27 +129,22 @@ export class HttpRequest {
|
|
|
130
129
|
* @remarks
|
|
131
130
|
* Adds an additional header to the overall list of headers
|
|
132
131
|
* used in the corresponding HTTP request.
|
|
133
|
-
* @param key
|
|
134
|
-
* @param value
|
|
135
132
|
*/
|
|
136
133
|
addHeader(key: string, value: minecraftserveradmin.SecretString | string): HttpRequest;
|
|
137
134
|
/**
|
|
138
135
|
* @remarks
|
|
139
136
|
* Updates the content of the body of the HTTP request.
|
|
140
|
-
* @param body
|
|
141
137
|
*/
|
|
142
138
|
setBody(body: string): HttpRequest;
|
|
143
139
|
/**
|
|
144
140
|
* @remarks
|
|
145
141
|
* Replaces and applies a set of HTTP Headers for the request.
|
|
146
|
-
* @param headers
|
|
147
142
|
*/
|
|
148
143
|
setHeaders(headers: HttpHeader[]): HttpRequest;
|
|
149
144
|
/**
|
|
150
145
|
* @remarks
|
|
151
146
|
* Sets the desired HTTP method (e.g., GET or PUT or PATCH) to
|
|
152
147
|
* use for making the request.
|
|
153
|
-
* @param method
|
|
154
148
|
*/
|
|
155
149
|
setMethod(method: HttpRequestMethod): HttpRequest;
|
|
156
150
|
setTimeout(timeout: number): HttpRequest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-net",
|
|
3
|
-
"version": "1.0.0-beta.1.19.80-preview.
|
|
3
|
+
"version": "1.0.0-beta.1.19.80-preview.23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@minecraft/server-admin": "1.0.0-beta.1.19.80-preview.
|
|
16
|
+
"@minecraft/server-admin": "1.0.0-beta.1.19.80-preview.23"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|