Commit Graph

73 Commits (feature/UrlUtils)

Author SHA1 Message Date
Kenneth Barbour da788a4860 QueryString handles null inputs 2018-11-30 19:58:57 -05:00
Kenneth Barbour 9c2520dcf3 alloc'd one more byte 2018-11-30 19:57:01 -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 1f2ecdd365 Buffer needs flush() method 2018-11-24 18:46:53 -05:00
Kenneth Barbour 2ba1acc650 reset() cleans buffer 2018-11-21 21:51:52 -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 9c1e30ac37 get client from webkernel 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 a709b3ac0a getUrl() and getMethod() is const 2018-10-09 16:22:29 -04:00
Kenneth Barbour 4db11a9318 Merge branch 'master' of https://github.com/kenbarbour/HttpServer 2018-04-29 10:22:21 -04:00
Kenneth Barbour 840ad38cf2 Merge branch 'docs' 2018-04-29 10:19:24 -04:00
Kenneth Barbour ca00e020bd added license 2018-04-28 10:15:34 -04:00
Kenneth Barbour db0cd9769b Usage documentation 2018-04-25 12:37:37 -04:00
Kenneth Barbour ce0b154921 some basic examples that toggle the builtin ESP8266 LED 2018-04-16 21:01:19 -04:00
Kenneth Barbour 6b1dedc9a5 WebKernel::dispatch accepts a HttpResponse 2018-04-08 10:52:03 -04:00
Kenneth Barbour d45bcc1378 Removed unused constructors for HttpResponse 2018-04-05 12:48:08 -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 06a56b611d Merge branch 'feature/kernel_lifecycle' 2018-04-04 12:53:48 -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 be794a9cd8 HttpResponse has a send() method and expects to be assigned a Stream containing the message 2018-04-04 12:22:03 -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