refactor(Httpd):

This commit is contained in:
Guille 2016-07-17 19:53:58 +02:00
parent 28ee511437
commit 1eed1a1cb3

View File

@ -1,5 +1,7 @@
import {Plugin, Cordova} from './plugin';
import {Observable} from 'rxjs/Observable';
import { Cordova, Plugin } from './plugin';
import { Observable } from 'rxjs/Observable';
/**
* @name Httpd
* @description
@ -23,22 +25,24 @@ export class Httpd {
observable: true,
clearFunction: 'stopServer'
})
static startServer(options: any): Observable<string> {return; }
static startServer(options: any): Observable<string> { return; }
/**
* Gets the URL of the running server
* @returns {Promise<string>} Returns a promise that resolves with the URL of the web server.
*/
@Cordova()
static getUrl(): Promise<string> {return; }
static getUrl(): Promise<string> { return; }
/**
* Get the local path of the running webserver
* @returns {Promise<string>} Returns a promise that resolves with the local path of the web server.
*/
@Cordova()
static getLocalPath(): Promise<string> {return; }
static getLocalPath(): Promise<string> { return; }
}
/**
* These options are used for the Httpd.startServer() function.
*/