diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libweb/http.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/libweb/http.h b/include/libweb/http.h index 4e80570..736a561 100644 --- a/include/libweb/http.h +++ b/include/libweb/http.h @@ -49,6 +49,21 @@ struct http_payload { const char *tmpname; } put; + + struct http_get + { + struct http_get_range + { + enum + { + HTTP_GET_RANGE_NONE, + HTTP_GET_RANGE_START = 1 << 0, + HTTP_GET_RANGE_END = 1 << 1 + } state; + + unsigned long long start, end; + } range; + } get; } u; const struct http_arg @@ -64,6 +79,7 @@ struct http_payload #define HTTP_STATUSES \ X(CONTINUE, "Continue", 100) \ X(OK, "OK", 200) \ + X(PARTIAL_CONTENT, "Partial Content", 206) \ X(SEE_OTHER, "See other", 303) \ X(BAD_REQUEST, "Bad Request", 400) \ X(UNAUTHORIZED, "Unauthorized", 401) \ |
