Commit Graph

61 Commits (master)

Author SHA1 Message Date
Kenneth Barbour b00c493206 added a ResponseParser 2020-07-03 12:35:02 -04:00
Kenneth Barbour c7597ca4b1 Print::print needs a return value 2018-11-30 19:59:53 -05:00
Kenneth Barbour 5ec1da3bf0 initialze _next 2018-11-30 15:37:21 -05:00
Kenneth Barbour e20c32a4fc setMessage to nullptr should free memory 2018-11-29 21:48:14 -05:00
Kenneth Barbour 3c7997f1f7 initialized buffer in test and made room for null terminator 2018-11-29 21:09:11 -05:00
Kenneth Barbour 42b1566785 added assignment operator and const correctness 2018-11-29 14:16:44 -05:00
Kenneth Barbour a2d06559f4 initialize buffer to empty 2018-11-29 11:24:25 -05:00
Kenneth Barbour 4525c4cbac delete dynamically allocated buffer 2018-11-28 14:02:21 -05:00
Kenneth Barbour ae9fa1a9e3 QueryString class 2018-11-27 16:26:40 -05:00
Kenneth Barbour 373d1d02ae terminate string in buffer while parsing header value 2018-11-26 16:40:58 -05:00
Kenneth Barbour 0aa588aecf Test for issue where POST requests time out 2018-11-26 14:49:12 -05:00
Kenneth Barbour 6ebd46210f odd methods wont match routes ever 2018-11-21 21:51:52 -05:00
Kenneth Barbour a00fcae67e added HttpHeaders::in(...) method for checking lists and fixed a bug when searching header names 2018-11-21 21:51:52 -05:00
Kenneth Barbour 466a5b2c3b query string parsing utils 2018-11-21 21:51:52 -05:00
Kenneth Barbour c0e91aff7e some helpers for parsing query strings 2018-11-21 21:51:52 -05:00
Kenneth Barbour 6f3fcc7932 Fixed bug where method is wrong after a post request 2018-11-21 14:29:35 -05:00
Kenneth Barbour 840ad38cf2 Merge branch 'docs' 2018-04-29 10:19:24 -04:00
Kenneth Barbour db0cd9769b Usage documentation 2018-04-25 12:37:37 -04:00
Kenneth Barbour 10f957b7d6 added extra data to the buffer to ensure strings are overwritten properly 2018-04-05 10:30:09 -04:00
Kenneth Barbour e08527dc25 WebKernel has an init handler that is called before dispatching a response 2018-04-04 12:51:07 -04:00
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 d1f99c069c Kernel/Parser handles sequential requests better 2018-03-20 19:13:37 -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 93a0bbe8de fixed mock arduino 2018-03-02 19:50:18 -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