Commit Graph

78 Commits

Author SHA1 Message Date
Adrien Marquès 9c9079f06b add 'driver.Driver.Name() string' and use it to select the default type/middleware folder (.build/middleware or middleware) | fix driver.Generic.LoadMiddleware() | remove variadic arguments for middleware.CreateRegistry() and checker.CreateRegistry() 2018-09-28 15:59:21 +02:00
Adrien Marquès 2cfc5a2ba0 update 'middleware' types | rename driver.Driver.Load() into RunController() | add driver.Driver.LoadMiddleware() | add driver management to middleware.Registry at creation | [TODO] implement diver.Generic.LoadMiddleware() 2018-09-28 10:54:13 +02:00
Adrien Marquès 74e4ce83cb restrict parameter names in config + ignore parameter names in received requests 2018-09-28 08:54:04 +02:00
Adrien Marquès f5800900b0 rename 'internal/apirequest' to 'internal/request' but use import alias 'apirequest' in dependencies 2018-09-28 08:10:41 +02:00
Adrien Marquès fced676c42 add 'driver/generic' (to test, alpha version) 2018-09-27 14:11:48 +02:00
Adrien Marquès 3feae783dc add driver management + moved implementation of default driver into 'driver/plugin' 2018-09-27 13:43:36 +02:00
Adrien Marquès 8c02bc53a5 add \r\n management instead of just \n + test the new behaviour 2018-09-26 09:36:41 +02:00
Adrien Marquès ff9ff23e5a fix \r\n trim for multipart lines 2018-09-26 08:09:55 +02:00
Adrien Marquès 0974658bf2 add debug to debug body parsers 2018-09-26 07:35:53 +02:00
Adrien Marquès 592ed23638 update multipart parser + tests 2018-09-25 21:22:25 +02:00
Adrien Marquès f76e3d35fa update readme + comment 2018-09-13 10:21:35 +02:00
Adrien Marquès 5aef3f5572 server implements http.Handler (ServeHTTP(responseWrite, request)) | apirequest.BuildFromHTTPRequest() becomes apirequest.FromHTTP() | update readme 2018-07-11 19:02:33 +02:00
Adrien Marquès 05d5c23038 fix aicra.files.IsDir() which logic was inverted | make add() private for registries (checker + middleware) + fix server.go (invalid address for Server.controller because wasn't initialized to NIL) 2018-07-11 01:51:10 +02:00
Adrien Marquès 1aee9e92fd rename package 'request' -> 'apirequest' ; 'config' -> 'controller' + main types.go bundled into server.go + made attributes non-exported (lowercase) 2018-07-11 01:36:42 +02:00
Adrien Marquès 61b3c6c91c min rename 2018-07-09 01:37:57 +02:00
Adrien Marquès 637bc91770 LINT: renaming + refactor 2018-07-09 01:34:21 +02:00
Adrien Marquès 6ebdd61325 LINT + Server.extractParameters is now private + add management for errors : 'UncallableController' and 'UncallableMethod' 2018-07-09 01:00:45 +02:00
Adrien Marquès 07bbdbbe30 rename 'implement' into 'response' 2018-07-09 00:15:29 +02:00
Adrien Marquès 6784c2df95 moved local imports into 'internal' parent package 2018-07-09 00:10:03 +02:00
Adrien Marquès 2b1bf77c0f removed from /internal directory 2018-05-30 09:02:08 +02:00
Adrien Marquès 8f9c86c391 moved data parser into 'request_data' + created internal lib to parse multipart inside 'internal/multipart' + added default type 'any' + more things... 2018-05-29 15:43:09 +02:00
Adrien Marquès 73c36a3821 config.Load() now sets defaults for optional fields 2018-05-24 16:53:39 +02:00
Adrien Marquès 75db1513bb add Controller.Method(string) to interface the extraction of dynamic method 2018-05-24 16:22:29 +02:00
Adrien Marquès 8106c22dbd implemented method check in 'config' package 2018-05-24 16:18:28 +02:00
Adrien Marquès 32520a1591 full parameter gathering in 'request_builder' 2018-05-22 09:10:10 +02:00
Adrien Marquès 18f4bcbbae add 'controller path-finding' + 'method check' + [TODO: issue with ParseMultipartForm() that is slow] 2018-05-21 13:02:15 +02:00
Adrien Marquès 60c0c92f3a add config.format(name string) to format/check config format 2018-05-20 12:21:27 +02:00
Adrien Marquès c9326a1bb3 moved 'config' in /internal 2018-05-20 10:46:39 +02:00