ADT
        ast-experimental
        pthread-emulation
        qualifiedEnum
      
      
        
          | Last change
 on this file since 5416b44 was             ef3c383, checked in by Thierry Delisle <tdelisle@…>, 4 years ago | 
        
          | 
Added statistics about sendfile in the webserver
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            481 bytes | 
      
      
| Line |  | 
|---|
| 1 | #pragma once | 
|---|
| 2 |  | 
|---|
| 3 | struct sendfile_stats_t; | 
|---|
| 4 |  | 
|---|
| 5 | enum HttpCode { | 
|---|
| 6 | OK200 = 0, | 
|---|
| 7 | OK200_PlainText, | 
|---|
| 8 | E400, | 
|---|
| 9 | E404, | 
|---|
| 10 | E405, | 
|---|
| 11 | E408, | 
|---|
| 12 | E413, | 
|---|
| 13 | E414, | 
|---|
| 14 | KNOWN_CODES | 
|---|
| 15 | }; | 
|---|
| 16 |  | 
|---|
| 17 | int code_val(HttpCode code); | 
|---|
| 18 |  | 
|---|
| 19 | int answer_error( int fd, HttpCode code ); | 
|---|
| 20 | int answer_plaintext( int fd ); | 
|---|
| 21 | int answer_empty( int fd ); | 
|---|
| 22 | int answer_sendfile( int pipe[2], int fd, int ans_fd, size_t count, struct sendfile_stats_t & ); | 
|---|
| 23 |  | 
|---|
| 24 | [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.