Enumerations | Functions | Variables

load_http_hdr.cc File Reference

A brief file description. More...

#include "HdrHeap.h"
#include "MIME.h"
#include "HTTP.h"
#include "Tokenizer.h"
#include "Diags.h"
#include <stdio.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
Include dependency graph for proxy/hdrs/load_http_hdr.cc:

Go to the source code of this file.

Enumerations

enum  hdr_type {
  UNKNOWN_HDR, REQUEST_HDR, RESPONSE_HDR, HTTP_INFO_HDR,
  RAW_MBUFFER, UNKNOWN_HDR, REQUEST_HDR, RESPONSE_HDR,
  HTTP_INFO_HDR, RAW_MBUFFER
}

Functions

char * load_string (const char *s, int len, int offset)
void process_http_hdr_impl (HdrHeapObjImpl *obj, int offset)
void process_mime_block_impl (MIMEFieldBlockImpl *mblock, int offset)
void process_mime_hdr_impl (HdrHeapObjImpl *obj, int offset)
void loop_over_heap_objs (HdrHeap *hdr_heap, int offset)
void load_buffer (int fd, hdr_type h_type)
int main (int argc, const char *argv[])

Variables

void * low_load_addr = NULL
void * high_load_addr = NULL
int heap_load_size = 0
int marshalled = 0

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file proxy/hdrs/load_http_hdr.cc.


Enumeration Type Documentation

enum hdr_type
Enumerator:
UNKNOWN_HDR 
REQUEST_HDR 
RESPONSE_HDR 
HTTP_INFO_HDR 
RAW_MBUFFER 
UNKNOWN_HDR 
REQUEST_HDR 
RESPONSE_HDR 
HTTP_INFO_HDR 
RAW_MBUFFER 

Definition at line 65 of file proxy/hdrs/load_http_hdr.cc.


Function Documentation

void load_buffer ( int  fd,
hdr_type  h_type 
)
char* load_string ( const char *  s,
int  len,
int  offset 
)
void loop_over_heap_objs ( HdrHeap hdr_heap,
int  offset 
)
int main ( int  argc,
const char *  argv[] 
)

Definition at line 307 of file proxy/hdrs/load_http_hdr.cc.

References diags, http_init(), and load_buffer().

void process_http_hdr_impl ( HdrHeapObjImpl obj,
int  offset 
)
void process_mime_block_impl ( MIMEFieldBlockImpl mblock,
int  offset 
)
void process_mime_hdr_impl ( HdrHeapObjImpl obj,
int  offset 
)

Variable Documentation

int heap_load_size = 0

Definition at line 60 of file proxy/hdrs/load_http_hdr.cc.

Referenced by load_buffer(), and load_string().

void* high_load_addr = NULL

Definition at line 59 of file proxy/hdrs/load_http_hdr.cc.

Referenced by load_buffer(), and load_string().

void* low_load_addr = NULL

Definition at line 58 of file proxy/hdrs/load_http_hdr.cc.

Referenced by load_buffer(), and load_string().

int marshalled = 0

Definition at line 61 of file proxy/hdrs/load_http_hdr.cc.

Referenced by load_buffer(), and load_string().