aboutsummaryrefslogtreecommitdiff
path: root/src/net/util.h
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2024-09-11 00:02:08 -0500
committeramelia squires <[email protected]>2024-09-11 00:02:08 -0500
commitf776ebf34442e0ac6dfc46afd5ac47793db82ac3 (patch)
tree25f1642859355d7cbe82a8b57549c2d2f52f8dbe /src/net/util.h
parente9cb2e0f75cbfa6bde188b9e043ebfd8d30b9451 (diff)
add res:stop
Diffstat (limited to 'src/net/util.h')
-rw-r--r--src/net/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/util.h b/src/net/util.h
index 98d4d93..fbe73f8 100644
--- a/src/net/util.h
+++ b/src/net/util.h
@@ -32,7 +32,7 @@ int parse_header(char* buffer, int header_eof, parray_t** _table);
* @param {char*} response content
* @param {size_t} content length
*/
-void http_build(str** _dest, int code, char* code_det, char* header_vs, char* content, size_t len);
+void http_build(str** _dest, int code, const char* code_det, char* header_vs, char* content, size_t len);
/**
* @brief gets a string representation of a http code
@@ -40,7 +40,7 @@ void http_build(str** _dest, int code, char* code_det, char* header_vs, char* co
* @param {int} http response code
* @param {char*} allocated destination string
*/
-void http_code(int code, char* code_det);
+const char* http_code(int code);
void client_fd_errors(int client_fd);