├── .gitignore ├── LICENSE ├── README.md ├── bower.json ├── dist └── fxos-web-server.js ├── example ├── directory │ ├── css │ │ └── app.css │ ├── img │ │ └── icons │ │ │ ├── icon.svg │ │ │ ├── icon128x128.png │ │ │ ├── icon16x16.png │ │ │ ├── icon48x48.png │ │ │ └── icon60x60.png │ ├── index.html │ ├── js │ │ ├── app.js │ │ └── storage.js │ ├── lib │ │ └── fxos-web-server.js │ └── manifest.webapp ├── p2p │ ├── css │ │ └── app.css │ ├── img │ │ └── icons │ │ │ ├── icon.svg │ │ │ ├── icon128x128.png │ │ │ ├── icon16x16.png │ │ │ ├── icon48x48.png │ │ │ └── icon60x60.png │ ├── index.html │ ├── js │ │ ├── app.js │ │ └── p2p-helper.js │ ├── lib │ │ └── fxos-web-server.js │ └── manifest.webapp ├── simple │ ├── css │ │ └── app.css │ ├── img │ │ ├── icons │ │ │ ├── icon.svg │ │ │ ├── icon128x128.png │ │ │ ├── icon16x16.png │ │ │ ├── icon48x48.png │ │ │ └── icon60x60.png │ │ └── image.jpg │ ├── index.html │ ├── js │ │ └── app.js │ ├── lib │ │ └── fxos-web-server.js │ └── manifest.webapp └── upload │ ├── css │ └── app.css │ ├── img │ └── icons │ │ ├── icon.svg │ │ ├── icon128x128.png │ │ ├── icon16x16.png │ │ ├── icon48x48.png │ │ └── icon60x60.png │ ├── index.html │ ├── js │ └── app.js │ ├── lib │ └── fxos-web-server.js │ └── manifest.webapp ├── package.json ├── src ├── binary-utils.js ├── event-target.js ├── http-request.js ├── http-response.js ├── http-server.js ├── http-status.js └── ip-utils.js └── test ├── karma.conf.js ├── mock └── navigator-moztcpsocket.js └── unit └── http-server.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/README.md -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/bower.json -------------------------------------------------------------------------------- /dist/fxos-web-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/dist/fxos-web-server.js -------------------------------------------------------------------------------- /example/directory/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/css/app.css -------------------------------------------------------------------------------- /example/directory/img/icons/icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/img/icons/icon.svg -------------------------------------------------------------------------------- /example/directory/img/icons/icon128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/img/icons/icon128x128.png -------------------------------------------------------------------------------- /example/directory/img/icons/icon16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/img/icons/icon16x16.png -------------------------------------------------------------------------------- /example/directory/img/icons/icon48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/img/icons/icon48x48.png -------------------------------------------------------------------------------- /example/directory/img/icons/icon60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/img/icons/icon60x60.png -------------------------------------------------------------------------------- /example/directory/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/index.html -------------------------------------------------------------------------------- /example/directory/js/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/js/app.js -------------------------------------------------------------------------------- /example/directory/js/storage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/js/storage.js -------------------------------------------------------------------------------- /example/directory/lib/fxos-web-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/lib/fxos-web-server.js -------------------------------------------------------------------------------- /example/directory/manifest.webapp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/directory/manifest.webapp -------------------------------------------------------------------------------- /example/p2p/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/css/app.css -------------------------------------------------------------------------------- /example/p2p/img/icons/icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/img/icons/icon.svg -------------------------------------------------------------------------------- /example/p2p/img/icons/icon128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/img/icons/icon128x128.png -------------------------------------------------------------------------------- /example/p2p/img/icons/icon16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/img/icons/icon16x16.png -------------------------------------------------------------------------------- /example/p2p/img/icons/icon48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/img/icons/icon48x48.png -------------------------------------------------------------------------------- /example/p2p/img/icons/icon60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/img/icons/icon60x60.png -------------------------------------------------------------------------------- /example/p2p/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/index.html -------------------------------------------------------------------------------- /example/p2p/js/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/js/app.js -------------------------------------------------------------------------------- /example/p2p/js/p2p-helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/js/p2p-helper.js -------------------------------------------------------------------------------- /example/p2p/lib/fxos-web-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/lib/fxos-web-server.js -------------------------------------------------------------------------------- /example/p2p/manifest.webapp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/p2p/manifest.webapp -------------------------------------------------------------------------------- /example/simple/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/css/app.css -------------------------------------------------------------------------------- /example/simple/img/icons/icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/img/icons/icon.svg -------------------------------------------------------------------------------- /example/simple/img/icons/icon128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/img/icons/icon128x128.png -------------------------------------------------------------------------------- /example/simple/img/icons/icon16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/img/icons/icon16x16.png -------------------------------------------------------------------------------- /example/simple/img/icons/icon48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/img/icons/icon48x48.png -------------------------------------------------------------------------------- /example/simple/img/icons/icon60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/img/icons/icon60x60.png -------------------------------------------------------------------------------- /example/simple/img/image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/img/image.jpg -------------------------------------------------------------------------------- /example/simple/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/index.html -------------------------------------------------------------------------------- /example/simple/js/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/js/app.js -------------------------------------------------------------------------------- /example/simple/lib/fxos-web-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/lib/fxos-web-server.js -------------------------------------------------------------------------------- /example/simple/manifest.webapp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/simple/manifest.webapp -------------------------------------------------------------------------------- /example/upload/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/upload/css/app.css -------------------------------------------------------------------------------- /example/upload/img/icons/icon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/upload/img/icons/icon.svg -------------------------------------------------------------------------------- /example/upload/img/icons/icon128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/upload/img/icons/icon128x128.png -------------------------------------------------------------------------------- /example/upload/img/icons/icon16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/upload/img/icons/icon16x16.png -------------------------------------------------------------------------------- /example/upload/img/icons/icon48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/upload/img/icons/icon48x48.png -------------------------------------------------------------------------------- /example/upload/img/icons/icon60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/upload/img/icons/icon60x60.png -------------------------------------------------------------------------------- /example/upload/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/upload/index.html -------------------------------------------------------------------------------- /example/upload/js/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/upload/js/app.js -------------------------------------------------------------------------------- /example/upload/lib/fxos-web-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/upload/lib/fxos-web-server.js -------------------------------------------------------------------------------- /example/upload/manifest.webapp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/example/upload/manifest.webapp -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/package.json -------------------------------------------------------------------------------- /src/binary-utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/src/binary-utils.js -------------------------------------------------------------------------------- /src/event-target.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/src/event-target.js -------------------------------------------------------------------------------- /src/http-request.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/src/http-request.js -------------------------------------------------------------------------------- /src/http-response.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/src/http-response.js -------------------------------------------------------------------------------- /src/http-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/src/http-server.js -------------------------------------------------------------------------------- /src/http-status.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/src/http-status.js -------------------------------------------------------------------------------- /src/ip-utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/src/ip-utils.js -------------------------------------------------------------------------------- /test/karma.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/test/karma.conf.js -------------------------------------------------------------------------------- /test/mock/navigator-moztcpsocket.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/test/mock/navigator-moztcpsocket.js -------------------------------------------------------------------------------- /test/unit/http-server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justindarc/fxos-web-server/HEAD/test/unit/http-server.js --------------------------------------------------------------------------------