|
taskrambler
0.1.8
Web server and task management solution.
|
#include <time.h>#include <sys/types.h>#include "class.h"#include "http/message.h"#include "session.h"#include "user.h"#include "asset.h"
Include dependency graph for response.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| CLASS (HttpResponse) | |
| HttpResponse | httpResponse304 (const char *, size_t, const char *, size_t, const char *, size_t) |
| HttpResponse | httpResponse403 () |
| HttpResponse | httpResponse404 () |
| HttpResponse | httpResponse500 () |
| HttpResponse | httpResponseJson (const char *, size_t) |
| HttpResponse | httpResponseAsset (const char *, size_t, time_t) |
Represents one HTTP response.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file response.h.
| CLASS | ( | HttpResponse | ) |
| HttpResponse httpResponse304 | ( | const char * | , |
| size_t | , | ||
| const char * | , | ||
| size_t | , | ||
| const char * | , | ||
| size_t | |||
| ) |
Definition at line 35 of file 304.c.
References CSTRA, and hashAdd().
Referenced by httpWorkerGetAsset().
Here is the call graph for this function:
Here is the caller graph for this function:| HttpResponse httpResponse403 | ( | ) |
| HttpResponse httpResponse404 | ( | ) |
Definition at line 47 of file 404.c.
References CSTRA, hashAdd(), memMalloc(), and RESP_DATA.
Referenced by httpWorkerGetAsset(), httpWorkerProcess(), and routerRoute().
Here is the call graph for this function:
Here is the caller graph for this function:| HttpResponse httpResponse500 | ( | ) |
Definition at line 47 of file 500.c.
References CSTRA, hashAdd(), memMalloc(), and RESP_DATA.
Referenced by httpWorkerProcess().
Here is the call graph for this function:
Here is the caller graph for this function:| HttpResponse httpResponseAsset | ( | const char * | , |
| size_t | , | ||
| time_t | |||
| ) |
Definition at line 59 of file http/response/asset.c.
References assetPoolGet(), CSTRA, hashAdd(), and rfc1123Gmt().
Referenced by httpWorkerGetAsset().
Here is the call graph for this function:
Here is the caller graph for this function:| HttpResponse httpResponseJson | ( | const char * | , |
| size_t | |||
| ) |
Definition at line 40 of file json.c.
References CSTRA, hashAdd(), and memMalloc().
Referenced by routerRoute().
Here is the call graph for this function:
Here is the caller graph for this function: