Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/protocol.hfa

    r7270432 red2cb3c  
    11#pragma once
    2 
    3 struct io_cancellation;
    42
    53enum HttpCode {
    64        OK200 = 0,
     5        OK200_PlainText,
    76        E400,
    87        E404,
     8        E405,
     9        E408,
    910        E413,
    1011        E414,
     
    1617int answer_error( int fd, HttpCode code );
    1718int answer_header( int fd, size_t size );
    18 int answer_plain( int fd, char buffer [], size_t size );
     19int answer_plaintext( int fd );
    1920int answer_empty( int fd );
    2021
    21 [HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len, io_cancellation *);
     22[HttpCode code, bool closed, * const char file, size_t len] http_read(int fd, []char buffer, size_t len);
    2223
    23 void sendfile( int pipe[2], int fd, int ans_fd, size_t count );
     24int sendfile( int pipe[2], int fd, int ans_fd, size_t count );
Note: See TracChangeset for help on using the changeset viewer.