@minecraft/server-net 1.0.0-beta.1.20.0-preview.21 → 1.0.0-beta.1.20.0-preview.22
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 +6 -1
- 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.20.0-preview.
|
|
20
|
+
* "version": "1.0.0-beta.1.20.0-preview.22"
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
@@ -66,6 +66,7 @@ export enum HttpRequestMethod {
|
|
|
66
66
|
*/
|
|
67
67
|
PUT = 'PUT',
|
|
68
68
|
}
|
|
69
|
+
|
|
69
70
|
export class HttpClient {
|
|
70
71
|
protected constructor();
|
|
71
72
|
/**
|
|
@@ -102,6 +103,7 @@ export class HttpClient {
|
|
|
102
103
|
*/
|
|
103
104
|
request(config: HttpRequest): Promise<HttpResponse>;
|
|
104
105
|
}
|
|
106
|
+
|
|
105
107
|
/**
|
|
106
108
|
* Represents an HTTP header - a key/value pair of
|
|
107
109
|
* meta-information about a request.
|
|
@@ -125,6 +127,7 @@ export class HttpHeader {
|
|
|
125
127
|
value: minecraftserveradmin.SecretString | string;
|
|
126
128
|
constructor(key: string, value: minecraftserveradmin.SecretString | string);
|
|
127
129
|
}
|
|
130
|
+
|
|
128
131
|
/**
|
|
129
132
|
* Main object for structuring a request.
|
|
130
133
|
*/
|
|
@@ -213,6 +216,7 @@ export class HttpRequest {
|
|
|
213
216
|
*/
|
|
214
217
|
setTimeout(timeout: number): HttpRequest;
|
|
215
218
|
}
|
|
219
|
+
|
|
216
220
|
/**
|
|
217
221
|
* Main object that contains result information from a request.
|
|
218
222
|
*/
|
|
@@ -247,4 +251,5 @@ export class HttpResponse {
|
|
|
247
251
|
*/
|
|
248
252
|
readonly status: number;
|
|
249
253
|
}
|
|
254
|
+
|
|
250
255
|
export const http: HttpClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-net",
|
|
3
|
-
"version": "1.0.0-beta.1.20.0-preview.
|
|
3
|
+
"version": "1.0.0-beta.1.20.0-preview.22",
|
|
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.20.0-preview.
|
|
16
|
+
"@minecraft/server-admin": "1.0.0-beta.1.20.0-preview.22"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|