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 11'use strict' ;
2+ /**
3+ * Lightweight web framework for your serverless applications
4+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5+ * @license MIT
6+ */
27
38const REQUEST = require ( './lib/request' ) ;
49const RESPONSE = require ( './lib/response' ) ;
Original file line number Diff line number Diff line change 11'use strict' ;
2+ /**
3+ * Lightweight web framework for your serverless applications
4+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5+ * @license MIT
6+ */
7+
28const zlib = require ( 'zlib' ) ;
39
410const defaultEnabledEcodings = [ 'gzip' , 'deflate' ] ;
Original file line number Diff line number Diff line change 11'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+ */
311
412class RouteError extends Error {
513 constructor ( message , path ) {
Original file line number Diff line number Diff line change 11'use strict' ;
2+ /**
3+ * Lightweight web framework for your serverless applications
4+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5+ * @license MIT
6+ */
7+
28// IDEA: add unique function identifier
39// IDEA: response length
410// 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 11'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+ */
311
412module . exports = {
513 // images
Original file line number Diff line number Diff line change 11'use strict' ;
2+ /**
3+ * Lightweight web framework for your serverless applications
4+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5+ * @license MIT
6+ */
7+
28module . exports = ( routes ) => {
39 let out = '' ;
410
Original file line number Diff line number Diff line change 11'use strict' ;
2+ /**
3+ * Lightweight web framework for your serverless applications
4+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5+ * @license MIT
6+ */
7+
28const QS = require ( 'querystring' ) ; // Require the querystring library
39const UTILS = require ( './utils' ) ; // Require utils library
410const LOGGER = require ( './logger' ) ; // Require logger library
Original file line number Diff line number Diff line change 11'use strict' ;
2+ /**
3+ * Lightweight web framework for your serverless applications
4+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5+ * @license MIT
6+ */
7+
28const UTILS = require ( './utils.js' ) ;
39
410const fs = require ( 'fs' ) ; // Require Node.js file system
Original file line number Diff line number Diff line change 11'use strict' ;
2+ /**
3+ * Lightweight web framework for your serverless applications
4+ * @author Jeremy Daly <jeremy@jeremydaly.com>
5+ * @license MIT
6+ */
7+
28// Require AWS SDK
39const AWS = require ( 'aws-sdk' ) ; // AWS SDK
410
Original file line number Diff line number Diff line change 11'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+ */
311
412module . exports = {
513 // 1xx: Informational
You can’t perform that action at this time.
0 commit comments