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

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since d1eb9c0 was b57db73, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

httpforall now only loads file if explicit path is given.

  • Property mode set to 100644
File size: 515 bytes
Line 
1#pragma once
2
3struct io_cancellation;
4
5enum HttpCode {
6        OK200 = 0,
7        E400,
8        E404,
9        E405,
10        E408,
11        E413,
12        E414,
13        KNOWN_CODES
14};
15
16int code_val(HttpCode code);
17
18int answer_error( int fd, HttpCode code );
19int answer_header( int fd, size_t size );
20int answer_plain( int fd, char buffer [], size_t size );
21int answer_empty( int fd );
22
23[HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len, io_cancellation *);
24
25int sendfile( int pipe[2], int fd, int ans_fd, size_t count );
Note: See TracBrowser for help on using the repository browser.