Commit Graph

106 Commits

Author SHA1 Message Date
xdrm-brackets a3f72a9bf7 added 'chan *Frame' and channel principle to build the Controller implementation on 2018-04-28 16:04:05 +02:00
xdrm-brackets dcfdb3411a websocket frame parsing works + controller dispatch but have to be improved 2018-04-27 12:16:34 +02:00
xdrm-brackets b1d0a71dd5 add chunk reader for websocket 2018-04-27 08:48:19 +02:00
xdrm-brackets 2bb8b81a21 update sample main 2018-04-26 23:40:53 +02:00
xdrm-brackets 3be3b5e156 add dispatch(net.Conn, *upgrader.T) to dispatch client into controller 2018-04-26 23:39:43 +02:00
xdrm-brackets 844bdf14c6 add controller into client 2018-04-26 23:39:20 +02:00
xdrm-brackets 756bbca0b1 updated GetMatch(uint) + add GetAllMatch() 2018-04-26 23:39:10 +02:00
xdrm-brackets 427d7d06c8 added server Launch() routine using s.dispatch() 2018-04-26 23:38:50 +02:00
xdrm-brackets 8432c81e07 proper Server attributes initialisation 2018-04-26 23:27:12 +02:00
xdrm-brackets 25216db125 added Client set into Server 2018-04-26 23:26:51 +02:00
xdrm-brackets 9fcd36d13d added visibility for upgrade Request/Response 2018-04-26 23:26:39 +02:00
xdrm-brackets 741a243f87 added upgrade.Request and Response getters for websocket routing (URI + protocol) 2018-04-26 23:26:20 +02:00
xdrm-brackets d16a0830d0 add Frame data (Opcode, etc) 2018-04-26 23:02:22 +02:00
xdrm-brackets bf58fc49e5 added sockets to ws.Client and ws.Server 2018-04-26 23:02:10 +02:00
xdrm-brackets 5e4341e3d9 upgrader interface returns a wrapper for the upgrade Request + Response for further information gathering while passing to WS protocol 2018-04-26 23:01:30 +02:00
xdrm-brackets 1c06b81cae added default ws.frame types 2018-04-26 22:54:43 +02:00
xdrm-brackets d603145f5f created [ws.*] to create a server, bind a default controller, or bind URI-bound controllers + launch() *TODO* + created websocket types 2018-04-26 22:54:17 +02:00
xdrm-brackets c6112c9c74 Match() uses 'matchString()' and 'matchWildcards()' and now works as expected 2018-04-26 22:15:09 +02:00
xdrm-brackets d6a9411bb1 Match() partially works (have to check for optional parameters) + GetMatch() works as well 2018-04-26 15:01:18 +02:00
xdrm-brackets 63b5125e6c added [internal.uri.parser] for better real-time URI parsing 2018-04-26 13:03:44 +02:00
xdrm-brackets 5f88fede99 minmod + rename statusCode.'Explicit()' to 'Message()' 2018-04-26 11:05:08 +02:00
xdrm-brackets c4863e396b added http.reader maximum buffer check 2018-04-26 10:24:00 +02:00
xdrm-brackets 7db4d2ee1f added [internal.ws.frame] types (draft) 2018-04-25 22:24:27 +02:00
xdrm-brackets 6e3c4a77c4 added frame layout in draft 2018-04-25 21:56:58 +02:00
xdrm-brackets a85e16e96a moved http.* into /internal | created upgrader interface in /upgrader 2018-04-25 21:51:53 +02:00
xdrm-brackets 6c8afe8720 implemented key -> accept + working upgrade 2018-04-25 18:58:48 +02:00
xdrm-brackets df8c9bc61c added 101 - Switching Protocols on success 2018-04-25 18:11:13 +02:00
xdrm-brackets d743448fce added request status code (defined in response) for creation from request to response 2018-04-25 18:09:26 +02:00
xdrm-brackets 08b73e87ad remove debug 2018-04-25 17:53:53 +02:00
xdrm-brackets 4468aa69b6 remove debug 2018-04-25 17:30:24 +02:00
xdrm-brackets 5649c49837 added 'String()' to check upgrade request 2018-04-25 17:22:27 +02:00
xdrm-brackets 4df664a138 added completion variables to track with asynchronous reading (chunk reader) 2018-04-25 17:21:56 +02:00
xdrm-brackets 4994d34bc7 added 'isComplete' to check request completion 2018-04-25 17:21:21 +02:00
xdrm-brackets b3194f53cb minmod 2018-04-25 17:01:57 +02:00
xdrm-brackets 0e20c4cba6 removed checks/extracts 2018-04-25 17:01:51 +02:00
xdrm-brackets 3159ffe3eb moved header checks/extracts into single file + added 'checkOriginPolicy' (Host/Origin headers can be read in any order) + added key check+extraction 2018-04-25 17:01:39 +02:00
xdrm-brackets 2edafff0f5 created alias for [][]byte (HeaderValue) for better readability 2018-04-25 17:00:51 +02:00
xdrm-brackets fcdcb42b62 Upgrade + Connection headers check 2018-04-25 16:40:43 +02:00
xdrm-brackets 4bcfd9c6ab extractHostPort() from the 'Host' header 2018-04-25 16:25:58 +02:00
xdrm-brackets 0792cfaa06 added String() 2018-04-25 16:25:41 +02:00
xdrm-brackets 2e90ff9cae [gwstester] clean 2018-04-25 16:06:14 +02:00
xdrm-brackets be8bfa012e [internal.http.reader] auto-correcting (no error raised) 2018-04-25 15:55:32 +02:00
xdrm-brackets ca472fb80c [internal.http.request] -> [internal.http.upgrade.request]
[http.upgrade.request] minmod
2018-04-25 15:54:15 +02:00
xdrm-brackets 45a3166dcc [http.upgrade.request] 'parseHeader' directly returns the error (err) 2018-04-25 15:41:39 +02:00
xdrm-brackets e3270318c2 [internal.http.request.parser.header] optimise: remove 'regexp' + some checks 2018-04-25 15:39:24 +02:00
xdrm-brackets 1ef8597742 [cmd.gwstester] moved execution time to client management 2018-04-25 15:01:39 +02:00
xdrm-brackets 8cda08731f [http.upgrade.request.private] clean 'parseHeader()' with using [internal.http.request.parser.header] 2018-04-25 15:01:12 +02:00
xdrm-brackets e375de0f33 [internal.http.request.parser.header] multi-value header parser 2018-04-25 15:00:43 +02:00
xdrm-brackets b3ccc911ee [http.upgrade.request.private] clean 'parseHeader()' with using [internal.http.request.parser.reqline] 2018-04-25 09:58:50 +02:00
xdrm-brackets 3f5dee7818 [http.upgrade.request.types] updated + used [internal.http.request.parser.reqline] 2018-04-25 09:57:16 +02:00