taskrambler  0.1.9
Web server and task management solution.
add_computed_header.c File Reference
#include <sys/types.h>
#include "class.h"
#include "http/message.h"
#include "http/header.h"
#include "http/worker.h"
#include "queue.h"
#include "utils/memory.h"
+ Include dependency graph for add_computed_header.c:

Go to the source code of this file.

Functions

void httpWorkerAddComputedHeader (HttpWorker this)
 

Detailed Description

Author
Georg Hopp

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 add_computed_header.c.

Function Documentation

void httpWorkerAddComputedHeader ( HttpWorker  this)

Definition at line 37 of file add_computed_header.c.

References hashAdd(), and queueGet().

Referenced by httpWorkerProcess().

38 {
39  HttpHeader header = (HttpHeader)queueGet(this->additional_headers);
40 
41  while(NULL != header) {
42  hashAdd(this->current_response->header, header);
43  header = (HttpHeader)queueGet(this->additional_headers);
44  }
45 }
void * queueGet(Queue)
Definition: queue/get.c:27
void * hashAdd(Hash, void *)
Definition: add.c:48

+ Here is the call graph for this function:

+ Here is the caller graph for this function: