ADT
ast-experimental
enum
forall-pointer-decay
pthread-emulation
qualifiedEnum
Last change
on this file since fdfb0ba was ed2cb3c, checked in by Thierry Delisle <tdelisle@…>, 5 years ago |
Client can now send message without copying.
|
-
Property mode
set to
100644
|
File size:
464 bytes
|
Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | enum HttpCode {
|
---|
4 | OK200 = 0,
|
---|
5 | OK200_PlainText,
|
---|
6 | E400,
|
---|
7 | E404,
|
---|
8 | E405,
|
---|
9 | E408,
|
---|
10 | E413,
|
---|
11 | E414,
|
---|
12 | KNOWN_CODES
|
---|
13 | };
|
---|
14 |
|
---|
15 | int code_val(HttpCode code);
|
---|
16 |
|
---|
17 | int answer_error( int fd, HttpCode code );
|
---|
18 | int answer_header( int fd, size_t size );
|
---|
19 | int answer_plaintext( int fd );
|
---|
20 | int answer_empty( int fd );
|
---|
21 |
|
---|
22 | [HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len);
|
---|
23 |
|
---|
24 | int sendfile( int pipe[2], int fd, int ans_fd, size_t count );
|
---|
Note:
See
TracBrowser
for help on using the repository browser.