Enumerations | Functions | Variables

load_http_hdr.cc File Reference

A brief file description. More...

#include "Marshal.h"
#include "MIME.h"
#include "HTTP.h"
#include "Tokenizer.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 lib/ts/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

void walk_mime_field (MIMEField f)
void walk_mstring (MBuffer *bufp, int32_t offset)
void walk_mbuffer (MBuffer *bufp)
void print_http_info_impl (HTTPInfo hi)
void print_http_hdr_impl (HTTPHdr h)
void print_hdr (HTTPHdr to_print)
void dump_hdr (char *mbuf, hdr_type h_type)
void load_buffer (int fd, hdr_type h_type)
int main (int argc, const char *argv[])
void walk_http_resp_hdr (HTTPHdr resp)
void walk_http_info (HTTPInfo hi)

Variables

char * marshal_type_strs []

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 lib/ts/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 46 of file lib/ts/load_http_hdr.cc.


Function Documentation

void dump_hdr ( char *  mbuf,
hdr_type  h_type 
)
void load_buffer ( int  fd,
hdr_type  h_type 
)

Definition at line 111 of file lib/ts/load_http_hdr.cc.

References ats_malloc(), dump_hdr(), Tokenizer::Initialize(), RAW_MBUFFER, and walk_mbuffer().

Referenced by main().

int main ( int  argc,
const char *  argv[] 
)

Definition at line 214 of file lib/ts/load_http_hdr.cc.

References http_init(), and load_buffer().

void print_hdr ( HTTPHdr  to_print  ) 

Definition at line 62 of file lib/ts/load_http_hdr.cc.

References HTTPHdr::print().

Referenced by dump_hdr().

void print_http_hdr_impl ( HTTPHdr  h  ) 

Definition at line 417 of file lib/ts/load_http_hdr.cc.

References HTTPHdrImpl::req, HTTPHdrImpl::resp, and HTTPHdrImpl::u.

Referenced by walk_mbuffer().

void print_http_info_impl ( HTTPInfo  hi  ) 

Definition at line 403 of file lib/ts/load_http_hdr.cc.

Referenced by walk_mbuffer().

void walk_http_info ( HTTPInfo  hi  ) 

Definition at line 385 of file lib/ts/load_http_hdr.cc.

void walk_http_resp_hdr ( HTTPHdr  resp  ) 

Definition at line 361 of file lib/ts/load_http_hdr.cc.

References walk_mime_field().

void walk_mbuffer ( MBuffer *  bufp  ) 
void walk_mime_field ( MIMEField  f  ) 

Definition at line 340 of file lib/ts/load_http_hdr.cc.

References mime_field_print().

Referenced by walk_http_resp_hdr(), and walk_mbuffer().

void walk_mstring ( MBuffer *  bufp,
int32_t  offset 
)

Definition at line 322 of file lib/ts/load_http_hdr.cc.

Referenced by walk_mbuffer().


Variable Documentation

Initial value:
 {
  "EMPTY ",
  "OBJ   ",
  "STR   ",
  "URL   ",
  "URL_F ",
  "URL_H ",
  "M_VALS",
  "M_FLD ",
  "M_HDR ",
  "H_HDR ",
  "H_REQ ",
  "H_RESP",
  "H_INFO"
}

Definition at line 256 of file lib/ts/load_http_hdr.cc.

Referenced by walk_mbuffer().