ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change
on this file since 05e33f5 was
ef3c383,
checked in by Thierry Delisle <tdelisle@…>, 3 years ago
|
Added statistics about sendfile in the webserver
|
-
Property mode set to
100644
|
File size:
481 bytes
|
Rev | Line | |
---|
[0aec496] | 1 | #pragma once |
---|
| 2 | |
---|
[ef3c383] | 3 | struct sendfile_stats_t; |
---|
| 4 | |
---|
[0aec496] | 5 | enum HttpCode { |
---|
| 6 | OK200 = 0, |
---|
[ed2cb3c] | 7 | OK200_PlainText, |
---|
[0aec496] | 8 | E400, |
---|
| 9 | E404, |
---|
[b57db73] | 10 | E405, |
---|
[ee59ede] | 11 | E408, |
---|
[0aec496] | 12 | E413, |
---|
| 13 | E414, |
---|
| 14 | KNOWN_CODES |
---|
| 15 | }; |
---|
| 16 | |
---|
[2ecbd7b] | 17 | int code_val(HttpCode code); |
---|
| 18 | |
---|
[0aec496] | 19 | int answer_error( int fd, HttpCode code ); |
---|
[187fdb8] | 20 | int answer_plaintext( int fd ); |
---|
[7270432] | 21 | int answer_empty( int fd ); |
---|
[ef3c383] | 22 | int answer_sendfile( int pipe[2], int fd, int ans_fd, size_t count, struct sendfile_stats_t & ); |
---|
[0aec496] | 23 | |
---|
[3f39009] | 24 | [HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len); |
---|
Note: See
TracBrowser
for help on using the repository browser.