Skip to content

Commit 18c0d47

Browse files
author
Vladimir Enchev
committed
readme updated again
1 parent 0220d13 commit 18c0d47

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

http/Readme.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
Sample code:
2-
```js
3-
var http = require("http");
4-
5-
// Universal request method. You can use HttpRequestOptions to set varios properties like url, headers, etc.,
6-
// HttpResponse to get status code, headers and content and HttpContent to get body of response:
1+
Definition: https://github.com/telerik/xPlatCore/blob/master/JS/BCL/http/http.d.ts
72

8-
interface HttpRequestOptions {
9-
url: string;
10-
method: string;
11-
headers?: any;
12-
content?: HttpContent;
13-
}
14-
15-
interface HttpResponse {
16-
statusCode: number;
17-
headers: any;
18-
content?: HttpContent;
19-
}
20-
21-
interface HttpContent {
22-
toString: () => string;
23-
toJSON: () => any;
24-
toImage: () => image_module.Image;
25-
}
26-
```
27-
28-
More info: https://github.com/telerik/xPlatCore/blob/master/Documentation/Snippets/http.md
3+
Sample code: https://github.com/telerik/xPlatCore/blob/master/Documentation/Snippets/http.md

0 commit comments

Comments
 (0)