taskrambler
v0.1.8
Web server and task management solution.
|
#include <sys/types.h>
#include "class.h"
#include "http/message.h"
#include "queue.h"
#include "stream.h"
#include "commons.h"
Go to the source code of this file.
Macros | |
#define | WRITER_BUF_CHUNK 1024 * 10 |
Enumerations | |
enum | HttpWriterState { HTTP_WRITER_GET =0, HTTP_WRITER_WRITE, HTTP_WRITER_DONE } |
Functions | |
CLASS (HttpWriter) | |
ssize_t | httpWriterWrite (void *, Stream) |
Write ready responses to an output stream.
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/writer.h.
#define WRITER_BUF_CHUNK 1024 * 10 |
Definition at line 70 of file http/writer.h.
Referenced by httpWriterWrite().
enum HttpWriterState |
Enumerator | |
---|---|
HTTP_WRITER_GET | |
HTTP_WRITER_WRITE | |
HTTP_WRITER_DONE |
Definition at line 75 of file http/writer.h.
CLASS | ( | HttpWriter | ) |
Definition at line 81 of file http/writer.h.
ssize_t httpWriterWrite | ( | void * | , |
Stream | |||
) |
if the message did not have the keep-alive feature we don't care about further pipelined messages and return to the caller with a -2 indicating that the underlying connection should be closed at their side. Then we close to connection.
Definition at line 37 of file http/writer/write.c.
References HTTP_WRITER_DONE, HTTP_WRITER_GET, HTTP_WRITER_WRITE, httpMessageHasKeepAlive(), httpMessageHeaderSizeGet(), httpMessageHeaderToString(), MEM_FREE, memGetSize(), memMalloc(), MIN, queueEmpty, queueGet(), size, streamWrite(), and WRITER_BUF_CHUNK.
Referenced by httpWorkerWrite().