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
|
||||
|
||||
```
|
||||
```javascript
|
||||
webserver.onRequest(
|
||||
function(request) {
|
||||
console.log("O MA GAWD! This is the request: ", request);
|
||||
|
||||
webserver.sendResponse(
|
||||
request.responseId,
|
||||
request.requestId,
|
||||
{
|
||||
status: 200,
|
||||
body: '<html>Hello World</html>',
|
||||
|
Loading…
Reference in New Issue
Block a user