File tree Expand file tree Collapse file tree 11 files changed +74
-3
lines changed Expand file tree Collapse file tree 11 files changed +74
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
+ /**
3
+ * Lightweight web framework for your serverless applications
4
+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5
+ * @license MIT
6
+ */
2
7
3
8
const REQUEST = require ( './lib/request' ) ;
4
9
const RESPONSE = require ( './lib/response' ) ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
+ /**
3
+ * Lightweight web framework for your serverless applications
4
+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5
+ * @license MIT
6
+ */
7
+
2
8
const zlib = require ( 'zlib' ) ;
3
9
4
10
const defaultEnabledEcodings = [ 'gzip' , 'deflate' ] ;
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- // Custom error types
2
+ /**
3
+ * Lightweight web framework for your serverless applications
4
+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5
+ * @license MIT
6
+ */
7
+
8
+ /*
9
+ Custom error types
10
+ */
3
11
4
12
class RouteError extends Error {
5
13
constructor ( message , path ) {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
+ /**
3
+ * Lightweight web framework for your serverless applications
4
+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5
+ * @license MIT
6
+ */
7
+
2
8
// IDEA: add unique function identifier
3
9
// IDEA: response length
4
10
// https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- // Minimal mime map for common file types
2
+ /**
3
+ * Lightweight web framework for your serverless applications
4
+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5
+ * @license MIT
6
+ */
7
+
8
+ /*
9
+ Minimal mime map for common file types
10
+ */
3
11
4
12
module . exports = {
5
13
// images
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
+ /**
3
+ * Lightweight web framework for your serverless applications
4
+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5
+ * @license MIT
6
+ */
7
+
2
8
module . exports = ( routes ) => {
3
9
let out = '' ;
4
10
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
+ /**
3
+ * Lightweight web framework for your serverless applications
4
+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5
+ * @license MIT
6
+ */
7
+
2
8
const QS = require ( 'querystring' ) ; // Require the querystring library
3
9
const UTILS = require ( './utils' ) ; // Require utils library
4
10
const LOGGER = require ( './logger' ) ; // Require logger library
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
+ /**
3
+ * Lightweight web framework for your serverless applications
4
+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5
+ * @license MIT
6
+ */
7
+
2
8
const UTILS = require ( './utils.js' ) ;
3
9
4
10
const fs = require ( 'fs' ) ; // Require Node.js file system
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
+ /**
3
+ * Lightweight web framework for your serverless applications
4
+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5
+ * @license MIT
6
+ */
7
+
2
8
// Require AWS SDK
3
9
const AWS = require ( 'aws-sdk' ) ; // AWS SDK
4
10
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- // HTTP status code map (IANA Status Code Registry)
2
+ /**
3
+ * Lightweight web framework for your serverless applications
4
+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5
+ * @license MIT
6
+ */
7
+
8
+ /*
9
+ HTTP status code map (IANA Status Code Registry)
10
+ */
3
11
4
12
module . exports = {
5
13
// 1xx: Informational
You can’t perform that action at this time.
0 commit comments