source: benchmark/io/http/protocol.hfa @ f835806

ADTast-experimentalpthread-emulationqualifiedEnum
Last change on this file since f835806 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
Line 
1#pragma once
2
3struct sendfile_stats_t;
4
5enum HttpCode {
6        OK200 = 0,
7        OK200_PlainText,
8        E400,
9        E404,
10        E405,
11        E408,
12        E413,
13        E414,
14        KNOWN_CODES
15};
16
17int code_val(HttpCode code);
18
19int answer_error( int fd, HttpCode code );
20int answer_plaintext( int fd );
21int answer_empty( int fd );
22int answer_sendfile( int pipe[2], int fd, int ans_fd, size_t count, struct sendfile_stats_t & );
23
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.