upgrade-to-websocket? ( response -- ? )


Vocabulary
http.client.private

Inputs
responsean object


Outputs
?an object


Definition


: upgrade-to-websocket? ( response -- ? )
{
[ response? ]
[ code>> 101 = ]
[ message>> >lower "switching protocols" = ]
[ header>> "connection" of "upgrade" = ]
[ header>> "upgrade" of "websocket" = ]
} 1&& ;