Commit Graph

61 Commits (6f3fcc79328dcdeea46a2fe38f58208945a83b1f)

Author SHA1 Message Date
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
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