refactor(Httpd):
This commit is contained in:
parent
28ee511437
commit
1eed1a1cb3
@ -1,5 +1,7 @@
|
|||||||
import {Plugin, Cordova} from './plugin';
|
import { Cordova, Plugin } from './plugin';
|
||||||
import {Observable} from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Httpd
|
* @name Httpd
|
||||||
* @description
|
* @description
|
||||||
@ -23,22 +25,24 @@ export class Httpd {
|
|||||||
observable: true,
|
observable: true,
|
||||||
clearFunction: 'stopServer'
|
clearFunction: 'stopServer'
|
||||||
})
|
})
|
||||||
static startServer(options: any): Observable<string> {return; }
|
static startServer(options: any): Observable<string> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the URL of the running server
|
* Gets the URL of the running server
|
||||||
* @returns {Promise<string>} Returns a promise that resolves with the URL of the web server.
|
* @returns {Promise<string>} Returns a promise that resolves with the URL of the web server.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static getUrl(): Promise<string> {return; }
|
static getUrl(): Promise<string> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the local path of the running webserver
|
* Get the local path of the running webserver
|
||||||
* @returns {Promise<string>} Returns a promise that resolves with the local path of the web server.
|
* @returns {Promise<string>} Returns a promise that resolves with the local path of the web server.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static getLocalPath(): Promise<string> {return; }
|
static getLocalPath(): Promise<string> { return; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* These options are used for the Httpd.startServer() function.
|
* These options are used for the Httpd.startServer() function.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user