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

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation new-ast new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since fe68bdf was 0aec496, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

First attempt at webserver, no option support yet

  • Property mode set to 100644
File size: 278 bytes
Line 
1#pragma once
2
3enum HttpCode {
4 OK200 = 0,
5 E400,
6 E404,
7 E413,
8 E414,
9 KNOWN_CODES
10};
11
12int answer_error( int fd, HttpCode code );
13int answer_header( int fd, size_t size );
14
15[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.