Commit Graph

48 Commits (0b85064f15319d06733624407b9019f724dcb3be)

Author SHA1 Message Date
Kenneth Barbour 0b85064f15 WebKernel has a terminate handler that is called after dispatching and sending a response 2018-04-04 12:51:05 -04:00
Kenneth Barbour 43ccbf4a52 HttpResponse has a send() method and expects to be assigned a Stream containing the message 2018-04-04 12:50:14 -04:00
Kenneth Barbour fd1019e1fa handle 404 and 405 errors 2018-03-20 19:13:39 -04:00
Kenneth Barbour ff3419a500 renamed getHttpVer to getHttpVersion for consistency 2018-03-20 19:13:39 -04:00
Kenneth Barbour ab82e09798 Added httpver to response 2018-03-20 19:13:39 -04:00
Kenneth Barbour 3b38fe1ae5 added some debugging to webkernel and always yield() 2018-03-20 19:13:39 -04:00
Kenneth Barbour d1f99c069c Kernel/Parser handles sequential requests better 2018-03-20 19:13:37 -04:00
Kenneth Barbour 91440090b2 Response Buffer added to WebKernel 2018-03-20 19:13:32 -04:00
Kenneth Barbour d5abc32e3c WebKernel test 2018-03-20 19:13:28 -04:00
Kenneth Barbour 464add864d Added # wildcard and handled urls containing query 2018-03-14 12:11:12 -04:00
Kenneth Barbour 9486a3af86 WebKernel class 2018-03-12 13:31:23 -04:00
Kenneth Barbour fd45238d96 mock arduino needs some stdlib 2018-03-09 18:19:34 -05:00
Kenneth Barbour 387e56a7be HttpRequest no longer responsible for parsing itself 2018-03-09 18:18:39 -05:00
Kenneth Barbour a94184905c HttpRequest message api and RequestParser message 2018-03-09 17:35:41 -05:00
Kenneth Barbour c92d39ddb1 A RequestParser that builds a request from interrupted input from a Stream 2018-03-09 17:35:41 -05:00
Kenneth Barbour 2a6dd718f7 Mock WifiClient/Server classes and tests 2018-03-09 17:35:41 -05:00
Kenneth Barbour 53a6726d84 WebKernel class as a main library driver 2018-03-09 17:35:41 -05:00
Kenneth Barbour 8563422e55 HttpResponse printTo and test 2018-03-09 17:32:24 -05:00
Kenneth Barbour e8b7739cf4 HttpHeaders printTo 2018-03-09 16:00:51 -05:00
Kenneth Barbour 9196e4c40a Printable interface 2018-03-09 16:00:46 -05:00
Kenneth Barbour 31513b6310 added test cases for Request/Headers copy and assignment 2018-03-09 14:08:35 -05:00
Kenneth Barbour ea4f370e77 HttpHeaders use only stack variables 2018-03-09 11:10:43 -05:00
Kenneth Barbour 50a9fe26eb Mock WiFiServer 2018-03-03 20:50:04 -05:00
Kenneth Barbour 9e2a1f3481 mock WiFiClient class 2018-03-03 20:40:30 -05:00
Kenneth Barbour c0f16432fe Changed availableToWrite to availableForWrite 2018-03-03 09:46:23 -05:00
Kenneth Barbour e1fc2bcb38 wait for data while reading from client 2018-03-02 19:50:49 -05:00
Kenneth Barbour 93a0bbe8de fixed mock arduino 2018-03-02 19:50:18 -05:00
Kenneth Barbour 0a20595efd removed erroneous <iostream> include in source file 2018-03-02 18:27:02 -05:00
Kenneth Barbour f9d3a47e0c Added a properties file for arduino ide 2018-03-02 18:26:04 -05:00
Kenneth Barbour 144a64ffe9 allow custom error handlers for 404 and 405 errors 2018-03-01 15:04:21 -05:00
Kenneth Barbour 9111e16c67 eliminated exceptionsHandling errors through flags for performance 2018-02-28 14:27:26 -05:00
Kenneth Barbour b7b7768451 simple Wildcards in route urls supported 2018-02-27 14:15:31 -05:00
Kenneth Barbour 6edaffb411 test case for a web-kernel with 2 different endpoints 2018-02-25 19:55:54 -05:00
Kenneth Barbour 31739f73cc Response takes a buffer argument 2018-02-25 19:55:38 -05:00
Kenneth Barbour 767e6021d8 separated Print and Stream mock classes from dummy implementations 2018-02-25 19:55:09 -05:00
Kenneth Barbour cd8049bdba Mock Stream and Print more Arduino-like;
Testing integration of all the classes
2018-02-25 19:53:32 -05:00
Kenneth Barbour 541c365bf9 Buffer extends Stream; added more mock methods for testing 2018-02-25 19:50:21 -05:00
Kenneth Barbour afa68e6441 Buffer class 2018-02-22 18:34:19 -05:00
Kenneth Barbour b923a64f01 RouteDispatcher that calls RequestRouter::match() and the resulting Route handler 2018-02-22 09:15:19 -05:00
Kenneth Barbour c34af6e436 HttpHeaders::append() 2018-02-22 09:15:13 -05:00
Kenneth Barbour 08c8473e4d added a handler func ptr to Route struct 2018-02-22 09:14:59 -05:00
Kenneth Barbour c94b35d84f fixed setUrl and setMessage 2018-02-21 21:11:19 -05:00
Kenneth Barbour 827bc8e667 added HttpRequest to MethodNotAllowedException and NotFoundException 2018-02-20 20:13:05 -05:00
Kenneth Barbour 86848e01eb Exceptions for routing 2018-02-20 19:13:35 -05:00
Kenneth Barbour 9a5231199a Getters/Setters for HttpRequest 2018-02-20 19:13:33 -05:00
Kenneth Barbour 8f012d68a6 HttpResponse code and reason 2018-02-20 19:13:25 -05:00
Kenneth Barbour 4220d44625 gitignore, simpler directory structure and Makefile 2018-02-20 19:13:20 -05:00
Kenneth Barbour 1827b1c558 Initial commit 2018-02-15 10:09:01 -05:00