readme updated again

This commit is contained in:
Vladimir Enchev
2014-05-23 11:36:38 +03:00
parent 0220d130f4
commit 18c0d47db5

View File

@ -1,28 +1,3 @@
Sample code:
```js
var http = require("http");
// Universal request method. You can use HttpRequestOptions to set varios properties like url, headers, etc.,
// HttpResponse to get status code, headers and content and HttpContent to get body of response:
Definition: https://github.com/telerik/xPlatCore/blob/master/JS/BCL/http/http.d.ts
interface HttpRequestOptions {
url: string;
method: string;
headers?: any;
content?: HttpContent;
}
interface HttpResponse {
statusCode: number;
headers: any;
content?: HttpContent;
}
interface HttpContent {
toString: () => string;
toJSON: () => any;
toImage: () => image_module.Image;
}
```
More info: https://github.com/telerik/xPlatCore/blob/master/Documentation/Snippets/http.md
Sample code: https://github.com/telerik/xPlatCore/blob/master/Documentation/Snippets/http.md