source: benchmark/io/http/protocol.hfa @ 05e33f5

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
RevLine 
[0aec496]1#pragma once
2
[ef3c383]3struct sendfile_stats_t;
4
[0aec496]5enum 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]17int code_val(HttpCode code);
18
[0aec496]19int answer_error( int fd, HttpCode code );
[187fdb8]20int answer_plaintext( int fd );
[7270432]21int answer_empty( int fd );
[ef3c383]22int 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.