Defines | Functions | Variables

testheaders.cc File Reference

A brief file description. More...

#include "ink_string.h"
#include "HttpTransact.h"
#include "HttpTransactHeaders.h"
Include dependency graph for testheaders.cc:

Go to the source code of this file.

Defines

#define MAX_FIELD_VALUE_SIZE   512

Functions

void print_header (HttpHeader *header)
void readin_header (HttpHeader *new_header, char *req_buffer, int length)
void make_comma_separated_header_field_value (HttpHeader *header, const char *fieldname, char *full_str)
void test_headers ()

Variables

char request1 [] = "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r\n\r\n"
char response1 [] = "Title: General Casualty - Home Page\r\n"
char response2 [] = "Server: Apache/1.1.1\r\n\r\n"

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 testheaders.cc.


Define Documentation

#define MAX_FIELD_VALUE_SIZE   512

Definition at line 28 of file testheaders.cc.

Referenced by make_comma_separated_header_field_value().


Function Documentation

void make_comma_separated_header_field_value ( HttpHeader *  header,
const char *  fieldname,
char *  full_str 
) [inline]

Definition at line 85 of file testheaders.cc.

References ink_strlcat(), and MAX_FIELD_VALUE_SIZE.

void print_header ( HttpHeader *  header  ) 

Referenced by test_headers().

void readin_header ( HttpHeader *  new_header,
char *  req_buffer,
int  length 
)

Definition at line 59 of file testheaders.cc.

Referenced by test_headers().

void test_headers (  ) 

Definition at line 107 of file testheaders.cc.

References print_header(), readin_header(), and request1.


Variable Documentation

char request1[] = "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r\n\r\n"

Definition at line 30 of file testheaders.cc.

Referenced by RequestInput::RequestInput(), test_headers(), and testPreProc().

char response1[] = "Title: General Casualty - Home Page\r\n"

Definition at line 43 of file testheaders.cc.

char response2[] = "Server: Apache/1.1.1\r\n\r\n"

Definition at line 51 of file testheaders.cc.