#pragma once enum HttpCode { OK200 = 0, E400, E404, E413, E414, KNOWN_CODES }; int code_val(HttpCode code); int answer_error( int fd, HttpCode code ); int answer_header( int fd, size_t size ); [HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len); void sendfile( int pipe[2], int fd, int ans_fd, size_t count );