diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-13 11:32:21 +0200 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2021-09-29 15:48:14 +0200 |
commit | cbcc71db72efb91adf7d7dac275de8ba4e12af0c (patch) | |
tree | 2e45415475032a1672d28861f65ceafb950eadc5 /src/core.h | |
parent | d6dbb6c979bc785e501cf109a7d155635b1647ea (diff) |
add support for HEAD method
Diffstat (limited to 'src/core.h')
-rw-r--r-- | src/core.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -26,6 +26,11 @@ enum tip_client_state { TIP_CLIENT_CLOSE_WAIT, }; +enum tip_http_method { + TIP_METHOD_GET = 0, + TIP_METHOD_HEAD, +}; + struct tip_client { struct list_head list; struct ev_io io; @@ -39,6 +44,7 @@ struct tip_client { char auth_token[64]; /* for file serving. */ + enum tip_http_method method; const char *uri; const char *path; off_t size; @@ -73,12 +79,6 @@ int tip_client_state_process_payload(struct tip_client *cli); int tip_client_state_process_payload_reply(struct tip_client *cli); int tip_client_state_process_payload_bulk(struct tip_client *cli); -enum tip_http_method { - TIP_METHOD_GET = 0, - TIP_METHOD_POST, - TIP_METHOD_NO_HTTP -}; - struct tip_client_redirect { struct list_head list; struct sockaddr_in addr; |