source: benchmark/io/http/protocol.hfa @ 075b8fd

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

Missing commits for plaintext

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