Filippo Conti
569abd0828
Added support to disable SSL server
If opts.certificate type is boolean and is false the SSL server wont be
created, this also ensure backward compatibility with previous versions where
certificate option is undefined
:100644 100644 30b40cc
a759f78
M src/index.js
:100644 100644 74550fc
601fe4c
M test/create-test-server.js
6 years ago
Luke Childs
99159f8e6c
Expose raw http and https servers ( #33 )
6 years ago
Luke Childs
6af11837ea
Allow optionally disabling body parser ( #32 )
* Use default function paramter for options object
* Don't set body parsing middleware if opts.bodyParser is false
* Only test against Node.js versions 8 and 10
* Test if opts.bodyParser is false body parsing middleware is disabled
* Document disabling body parsing middleware
6 years ago
wtgtybhertgeghgtwtg
36d4b66e2f
Allow options to be passed to `body-parser`. ( #22 )
7 years ago
Luke Childs
09dcd8b3f7
Parse application/octet-stream as Buffer and expose as req.body
7 years ago
Luke Childs
8000c5cfac
Parse application/x-www-form-urlencoded as URL-encoded form and expose as req.body
7 years ago
Luke Childs
129bd8c1a8
Parse text/plain as string and expose as req.body
7 years ago
Luke Childs
36adefcea8
Parse application/json as JSON and expose as req.body
7 years ago
Kevin Mårtensson
23319da689
Accept multiple middlewares in `app.get` ( #16 )
7 years ago
Kevin Mårtensson
5788767aa7
Support returning body without wrapping it in a function ( #15 )
7 years ago
Kevin Mårtensson
03dcb004a6
Enable returning body directly ( #14 )
7 years ago
Luke Childs
ab991825e7
Update tests to check new port exports
8 years ago
Luke Childs
fb344d2ed9
Remove nonexistent Got option
8 years ago
Luke Childs
93889dd451
Test server uses a new port on each listen
8 years ago
Luke Childs
c3ddd1d3cb
Remove port tests
8 years ago
Luke Childs
02ee199a71
Test port properties are added
8 years ago
Luke Childs
29450b3ae7
Fix stop/restart test to work with new functionality
8 years ago
Luke Childs
b2a51ea2f1
Dont expose port, sslPort and host on app
8 years ago
Luke Childs
6845e14ce0
Don't expose all certs, just the CA cert
8 years ago
Luke Childs
ecee111bce
Cleanup tests
8 years ago
Luke Childs
35fda8280d
Use https.createServer compatible keys in create-cert@0.3.1
8 years ago
Luke Childs
43724a0c28
Oops
8 years ago
Luke Childs
a2e8d2728c
Test opts.certificate is passed through to createCert()
8 years ago
Luke Childs
816e452084
Test server listens for SSL traffic
8 years ago
Luke Childs
d9c842dca6
Test new SSL props
8 years ago
Luke Childs
5bf3caca62
Test server can be stopped and restarted
8 years ago
Luke Childs
ee13d7e080
Test express endpoint
8 years ago
Luke Childs
bdb5b6c623
Test server instance exposes useful properties
8 years ago
Luke Childs
a8e4ae4b55
Test createTestServer returns a Promise
8 years ago
Luke Childs
a5595c36a6
Initial commit
8 years ago