void InspectorResourceAgent::willSendWebSocketHandshakeRequest(unsigned long identifier, const WebSocketHandshakeRequest& request) { RefPtr<InspectorObject> requestObject = InspectorObject::create(); requestObject->setObject("webSocketHeaderFields", buildObjectForHeaders(request.headerFields())); requestObject->setString("webSocketRequestKey3", createReadableStringFromBinary(request.key3().value, sizeof(request.key3().value))); m_frontend->willSendWebSocketHandshakeRequest(identifier, currentTime(), requestObject); }
void InspectorResourceAgent::willSendWebSocketHandshakeRequest(unsigned long identifier, const WebSocketHandshakeRequest& request) { RefPtr<TypeBuilder::Network::WebSocketRequest> requestObject = TypeBuilder::Network::WebSocketRequest::create() .setRequestKey3(createReadableStringFromBinary(request.key3().value, sizeof(request.key3().value))) .setHeaders(buildObjectForHeaders(request.headerFields())); m_frontend->webSocketWillSendHandshakeRequest(IdentifiersFactory::requestId(identifier), currentTime(), requestObject); }
void InspectorResource::updateWebSocketRequest(const WebSocketHandshakeRequest& request) { m_requestHeaderFields = request.headerFields(); m_requestMethod = "GET"; // Currently we always use "GET" to request handshake. m_webSocketRequestKey3.set(new WebSocketHandshakeRequest::Key3(request.key3())); m_changes.set(RequestChange); m_changes.set(TypeChange); }
void InspectorResourceAgent::willSendWebSocketHandshakeRequest(Document*, unsigned long identifier, const WebSocketHandshakeRequest& request) { RefPtr<TypeBuilder::Network::WebSocketRequest> requestObject = TypeBuilder::Network::WebSocketRequest::create() .setHeaders(buildObjectForHeaders(request.headerFields())); m_frontend->webSocketWillSendHandshakeRequest(IdentifiersFactory::requestId(identifier), currentTime(), requestObject); }