[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
This commit is contained in:
parent
d956432e3c
commit
791a31e05f
@ -113,22 +113,6 @@ class HandshakeVerifier {
|
|||||||
return (16 === strlen(base64_decode((string)$val)));
|
return (16 === strlen(base64_decode((string)$val)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Verify Origin matches RFC6454 IF it is set
|
|
||||||
* Origin is an optional field
|
|
||||||
* @param string|null
|
|
||||||
* @return bool
|
|
||||||
* @todo Implement verification functionality - see section 4.2.1.7
|
|
||||||
*/
|
|
||||||
public function verifyOrigin($val) {
|
|
||||||
if (null === $val) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// logic here
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verify the version passed matches this RFC
|
* Verify the version passed matches this RFC
|
||||||
* @param string|int MUST equal 13|"13"
|
* @param string|int MUST equal 13|"13"
|
||||||
|
@ -216,7 +216,6 @@ class WsServer implements HttpServerInterface {
|
|||||||
* Close a connection with an HTTP response
|
* Close a connection with an HTTP response
|
||||||
* @param \Ratchet\ConnectionInterface $conn
|
* @param \Ratchet\ConnectionInterface $conn
|
||||||
* @param int $code HTTP status code
|
* @param int $code HTTP status code
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
protected function close(ConnectionInterface $conn, $code = 400) {
|
protected function close(ConnectionInterface $conn, $code = 400) {
|
||||||
$response = new Response($code, array(
|
$response = new Response($code, array(
|
||||||
|
Loading…
Reference in New Issue
Block a user