http: Move websocket send to http, obvs.

This commit is contained in:
2025-02-27 19:07:01 -05:00
parent b5bdae4611
commit 6a346bf940
3 changed files with 40 additions and 41 deletions

View File

@ -209,10 +209,11 @@ const char* tf_http_get_cookie(const char* cookie_header, const char* name);
** Send a websocket message.
** @param request The HTTP request which was previously updated to a websocket
** session with tf_http_request_websocket_upgrade().
** @param op_code Websocket op code.
** @param data The message data.
** @param size The size of data.
*/
void tf_http_request_send(tf_http_request_t* request, const void* data, size_t size);
void tf_http_request_websocket_send(tf_http_request_t* request, int op_code, const void* data, size_t size);
/**
** Upgrade an HTTP request to a websocket session.