diff --git a/http/Readme.md b/http/Readme.md index ffeb7ac28..d0494201a 100644 --- a/http/Readme.md +++ b/http/Readme.md @@ -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 \ No newline at end of file +Sample code: https://github.com/telerik/xPlatCore/blob/master/Documentation/Snippets/http.md \ No newline at end of file