taskrambler
v0.1.8
Web server and task management solution.
|
#include <stdlib.h>
#include "class.h"
#include "cbuf.h"
#include "stream.h"
#include "queue.h"
#include "http/parser.h"
#include "http/header.h"
#include "http/interface/http_intro.h"
#include "utils/memory.h"
#include "commons.h"
Go to the source code of this file.
Macros | |
#define | MIN(a, b) ((a)<(b)? (a) : (b)) |
Functions | |
ssize_t | httpParserParse (void *_this, Stream st) |
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 http/parser/parse.c.
#define MIN | ( | a, | |
b | |||
) | ((a)<(b)? (a) : (b)) |
Definition at line 37 of file http/parser/parse.c.
Referenced by httpParserParse().
ssize_t httpParserParse | ( | void * | _this, |
Stream | st | ||
) |
do we have form data??
then parse them...
enqueue current request
prepare for next request
Definition at line 41 of file http/parser/parse.c.
References cbufGetData(), cbufGetLine(), cbufGetRead(), cbufIncRead(), cbufIsEmpty(), cbufIsLocked(), cbufLock(), cbufRead(), cbufRelease(), cbufSetData(), cbufSkipNonAlpha(), CSTRA, FALSE, hashGet(), HTTP_MESSAGE_DONE, HTTP_MESSAGE_GARBAGE, HTTP_MESSAGE_HEADERS_DONE, HTTP_MESSAGE_INTRO_DONE, HTTP_MESSAGE_START, httpParserBody(), httpParserHeader(), httpParserNewMessage(), httpParserPostVars(), httpParserRequestVars(), MEM_FREE, memMalloc(), MIN, queuePut(), and TRUE.
Referenced by httpWorkerProcess().