browsers in seconds TTL for proxies in seconds Proxies & browsers can cache Only browsers can cache Revalidate before dropping from cache Don’t cache at all Browser revalidate before serving from cache Proxy revalidate before serving from cache
MessageComponentInterface { protected $clients; public function __construct() { $this->clients = new \SplObjectStorage; } public function onOpen(ConnectionInterface $conn) { $this->clients->attach($conn); } public function onMessage(ConnectionInterface $from, $msg) { foreach ($this->clients as $client) { if ($from !== $client) { $client->send('Response: '.$msg); } } } public function onClose(ConnectionInterface $conn) { $this->clients->detach($conn); } public function onError(ConnectionInterface $conn, \Exception $e) { echo "An error has occurred: {$e->getMessage()}\n"; $conn->close(); } }
so you know that something with addiKonal slashes is a subordinate resource ✓Verbs are used to perform operaKons on resources ✓The operaKon is implicit and not part of the URL ✓A hypermedia format is used to represent the data ✓Link relaKons are used to navigate a service Quodng David Zülke @dzuelke