File serving. More...
Functions | |
| VTM_API int | vtm_http_file_serve (vtm_http_res *res, const char *name, FILE *fp) |
| VTM_API int vtm_http_file_serve | ( | vtm_http_res * | res, |
| const char * | name, | ||
| FILE * | fp | ||
| ) |
Serves the contents of a file as response body.
This call prepares the response so that when the response is sent, the contents of the file stream are included as body part.
| res | the response where the file should be served |
| name | the of the file |
| fp | the already opened file stream |
1.8.8