Lines Matching refs:client
34 int handle_http1_to_websocket_upgrade(struct http_client_ctx *client) in handle_http1_to_websocket_upgrade() argument
48 key_len = MIN(sizeof(key_accept) - 1, sizeof(client->ws_sec_key)); in handle_http1_to_websocket_upgrade()
49 strncpy(key_accept, client->ws_sec_key, key_len); in handle_http1_to_websocket_upgrade()
60 NET_DBG("[%p] Too short buffer olen %zd", client, olen); in handle_http1_to_websocket_upgrade()
66 ret = http_server_sendall(client, switching_protocols, in handle_http1_to_websocket_upgrade()
73 client->http1_headers_sent = true; in handle_http1_to_websocket_upgrade()
75 ret = http_server_sendall(client, tmp, strlen(tmp)); in handle_http1_to_websocket_upgrade()
87 ret = http_server_sendall(client, tmp, strlen(tmp)); in handle_http1_to_websocket_upgrade()
96 if (client->parser_state == HTTP1_MESSAGE_COMPLETE_STATE) { in handle_http1_to_websocket_upgrade()
103 ws_detail = (struct http_resource_detail_websocket *)client->current_detail; in handle_http1_to_websocket_upgrade()
105 ret = ws_sock = websocket_register(client->fd, in handle_http1_to_websocket_upgrade()
114 params = &client->url_buffer[client->current_detail->path_len]; in handle_http1_to_websocket_upgrade()
116 populate_request_ctx(&request_ctx, params, params_len, &client->header_capture_ctx); in handle_http1_to_websocket_upgrade()
119 http_server_release_client(client); in handle_http1_to_websocket_upgrade()