ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast-unique-expr
pthread-emulation
qualifiedEnum
Last change
on this file since d23c0b2 was b57db73, checked in by Thierry Delisle <tdelisle@…>, 5 years ago |
httpforall now only loads file if explicit path is given.
|
-
Property mode
set to
100644
|
File size:
515 bytes
|
Rev | Line | |
---|
[0aec496] | 1 | #pragma once
|
---|
| 2 |
|
---|
[ece0e80] | 3 | struct io_cancellation;
|
---|
| 4 |
|
---|
[0aec496] | 5 | enum HttpCode {
|
---|
| 6 | OK200 = 0,
|
---|
| 7 | E400,
|
---|
| 8 | E404,
|
---|
[b57db73] | 9 | E405,
|
---|
[ee59ede] | 10 | E408,
|
---|
[0aec496] | 11 | E413,
|
---|
| 12 | E414,
|
---|
| 13 | KNOWN_CODES
|
---|
| 14 | };
|
---|
| 15 |
|
---|
[2ecbd7b] | 16 | int code_val(HttpCode code);
|
---|
| 17 |
|
---|
[0aec496] | 18 | int answer_error( int fd, HttpCode code );
|
---|
| 19 | int answer_header( int fd, size_t size );
|
---|
[ba77750] | 20 | int answer_plain( int fd, char buffer [], size_t size );
|
---|
[7270432] | 21 | int answer_empty( int fd );
|
---|
[0aec496] | 22 |
|
---|
[ece0e80] | 23 | [HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len, io_cancellation *);
|
---|
[c82af9f] | 24 |
|
---|
[ee59ede] | 25 | int sendfile( int pipe[2], int fd, int ans_fd, size_t count );
|
---|
Note:
See
TracBrowser
for help on using the repository browser.