Changeset c3353ae5 in rtems for cpukit/mghttpd/mongoose.h


Ignore:
Timestamp:
Mar 8, 2018, 4:12:30 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11
Children:
d4165e71
Parents:
7093cb5e
git-author:
Chris Johns <chrisj@…> (03/08/18 04:12:30)
git-committer:
Chris Johns <chrisj@…> (03/08/18 04:34:15)
Message:

cpukit/mttpd: Add a callback to generate a per file HTTP etag.

Closes #3324

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/mghttpd/mongoose.h

    r7093cb5e rc3353ae5  
    125125  //   status: HTTP error status code.
    126126  int  (*http_error)(struct mg_connection *, int status);
     127
     128  // Called when mongoose needs to generate an HTTP etag.
     129  // Implementing this callback allows a custom etag to be generated. If
     130  // not implemented the standard etag generator is used which is the
     131  // modification time as a hex value and the file size.
     132  // Use this callback if the modification time cannot be controlled.
     133  // Parameters:
     134  //   path: path to the file being requested
     135  //   etag: buffer to write the etag into
     136  //   etag_len: the length of the etag buffer
     137  // Return value:
     138  int  (*http_etag)(const struct mg_connection *,
     139                    const char *path, char *etag, size_t etag_len);
    127140};
    128141
Note: See TracChangeset for help on using the changeset viewer.