diff options
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; |