Merge branch 'master' of https://github.com/bykof/cordova-plugin-webserver
This commit is contained in:
commit
f77fd4d4b0
@ -75,13 +75,13 @@ The params have to look like this (there are not default values for the params!)
|
|||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```
|
```javascript
|
||||||
webserver.onRequest(
|
webserver.onRequest(
|
||||||
function(request) {
|
function(request) {
|
||||||
console.log("O MA GAWD! This is the request: ", request);
|
console.log("O MA GAWD! This is the request: ", request);
|
||||||
|
|
||||||
webserver.sendResponse(
|
webserver.sendResponse(
|
||||||
request.responseId,
|
request.requestId,
|
||||||
{
|
{
|
||||||
status: 200,
|
status: 200,
|
||||||
body: '<html>Hello World</html>',
|
body: '<html>Hello World</html>',
|
||||||
|
Loading…
Reference in New Issue
Block a user