Erik Niebla
d239e94d19
Support for PSR7 2.x
2021-12-01 08:47:38 -05:00
Chris Boden
a83a4e460a
Create a noop controller for impatient clients
2017-10-09 13:18:18 -04:00
Chris Boden
fe4a97400d
Remove usage of http_parse_message
...
Found a case where http_parse_message failed to parse a valid request header and returned null, which ended up in an uncaught exception being thrown by Guzzle.
2017-09-13 18:12:50 -04:00
Chris Boden
4cf38fe82e
Merge branch 'master' into 0.4
...
# Conflicts:
# CHANGELOG.md
# src/Ratchet/ConnectionInterface.php
# src/Ratchet/Http/Router.php
# src/Ratchet/WebSocket/Version/RFC6455.php
# tests/unit/Http/RouterTest.php
2017-02-16 20:14:25 -05:00
Chris Boden
7a661b5016
Merge branch 'pr/472-method-not-allowed'
2016-12-30 13:26:12 -05:00
samizdam
56c07ce4b8
Factory new Request Url from url, instead path only: keep original request host, scheme, etc.
2016-11-25 21:26:12 +03:00
samizdam
7215ffe9e6
Send additional headers on close connection in Router.
2016-11-17 19:48:29 +03:00
samizdam
5eb1dfa98d
Use 403 status code on MethodNotAllowedException.
2016-11-10 21:05:00 +03:00
Chris Boden
2f79840f30
Fixed Router/tests with PSR-7 integration
2016-02-11 17:52:33 -05:00
Chris Boden
d0d7b67ad7
Ues pecl_http if available, cleanup
...
pecl_http if available to parse HTTP requests (5x faster)
Update ConnectionContext to match latest RFC interface
Removed Guzzle integration test (now using PSR-7 API)
2015-05-31 13:54:43 -04:00
Chris Boden
a744aea1f0
PSR-7 + RFC
...
Http components and APIs now use PSR-7 interfaces
No longer using deprecated Guzzle dependency
Use RFC6455 repo for WebSocket message handling
Remove Hixie76 (refs #201 )
2015-05-30 10:19:30 -04:00
Chris Boden
1a47d4f5e4
Fix loss of query params in Router and unit test
2014-09-13 19:14:18 -04:00
Chris Boden
1153cfc9d4
Merge branch 'refs/heads/lyrixx-cs'
2014-04-13 11:44:51 -04:00
Grégoire Pineau
136e72d807
CS (trainling space)
2014-03-21 16:46:52 +01:00
Grégoire Pineau
3a8578bd17
CS (eof_ending)
2014-03-21 16:46:43 +01:00
Laurynas Veržukauskas
343ecdfa0f
Filter all keys starting with underscore
2014-03-18 22:28:19 +02:00
Vincent Dieltiens
74fb2a691b
[Router] Update the Url QueryString of the request object with the parameters return by the UrlMatcher to let the developer access thoses parameters
2014-03-18 22:28:17 +02:00
Loïc Doignié
1370cb6109
This modification gives Ratchet its own RequestFactory instance.
...
This way you can use guzzle as REST Client.
2013-10-08 08:51:25 +02:00
Chris Boden
6559aaf1d4
[Http] Fixed bug in Origin check - browser may pass http://
2013-08-05 16:23:38 -04:00
Chris Boden
4039a643ea
API docs on new features
2013-07-22 21:03:19 -04:00
Chris Boden
f50af83fa7
[Http][Security] OriginCheck + same host/origin policy
...
Added the Http\OriginCheck component that will only allow connections coming from desired Origins
Same host+origin policy by default: App.php, by default, will only allow connections from the given hostname
Fixes #102
2013-07-20 18:41:08 -04:00
Chris Boden
0cf4b614a1
5.5 tests
2013-07-20 14:52:18 -04:00
Chris Boden
0edd37af3f
Hostname check verification refs #102
...
host parameter of App now verified on incoming connections
2013-06-09 14:09:57 -04:00
Chris Boden
40f267834a
Merge branch 'refs/heads/master' (v0.2.7) into 0.3
...
Conflicts:
CHANGELOG.md
composer.json
composer.lock
src/Ratchet/ConnectionInterface.php
src/Ratchet/WebSocket/Version/HyBi10.php
src/Ratchet/WebSocket/Version/RFC6455.php
src/Ratchet/WebSocket/WsServer.php
2013-06-09 12:04:42 -04:00
Chris Boden
f4ddea5f44
Removed updating remoteAddress via proxy header
2013-05-29 07:51:33 -04:00
Chris Boden
8b3591ce0d
App class
2013-05-08 20:44:01 -04:00
Chris Boden
1ff7998f58
[Http] Only update remoteAddress if local and header
2013-05-02 19:17:47 -04:00
Chris Boden
cd0efed085
Set $conn->remoteAddress if proxy forwarded
...
Refs #89
2013-05-01 19:42:15 -04:00
Chris Boden
1622caadad
[Http][Router] Fixed bugs found from unit tests
2013-04-30 21:24:39 -04:00
Chris Boden
344818d0f5
[Tests] Bring up unit testing coverage
...
Coverage on Http and Session
Set version to 0.3-beta
Cleaned up a couple API doc things
Removed Origin code from RFC, will be moved to Http
2013-04-28 15:25:16 -04:00
Chris Boden
8df459548f
[WebSocket][Http] Bug fix WS require nullifying, more strict on Request parameter
2013-04-28 09:55:43 -04:00
Chris Boden
1ea0bd3255
[Http] Cleanup and parse error fix
2013-04-27 16:51:24 -04:00
Chris Boden
26a760709f
[Http] Facade class for routing
...
Not sure if it'll stick or not, but easier way to route for now
Refs #15
2013-04-27 00:05:10 -04:00
Chris Boden
4df71c3a35
[Http] ROUTING BABY
...
Decoupled routing from HTTP
Added Router implement HttpServerInterface
Fully functional Symfony routes in application!
As a result, this drastically decreased backwards compatibility breaks while introducing new functionality
2013-04-26 23:01:28 -04:00
Chris Boden
c24cdf379e
[Http] Accept RouteCollection, spike CORS protection
2013-04-26 21:06:34 -04:00
Chris Boden
4a87375f10
[Http] HttpServerInterface
...
Force HttpServerInterface on route
Call controller on all events
2013-04-26 20:00:11 -04:00
Chris Boden
43003d69f9
[Http] Only pass Request, don't store (twice)
2013-04-26 19:19:47 -04:00
Chris Boden
18bc114408
[Http] Routing spike
2013-04-16 22:37:15 -04:00
Chris Boden
423b5cc355
[Http] Refactor header parsing from WS to HTTP
2013-04-14 18:34:28 -04:00
Chris Boden
7b2b6897e5
HTTP Decouple spike
2013-04-14 18:23:12 -04:00