HttpBody.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 /* DEBUG: section 56 HTTP Message Body */
10 
11 #include "squid.h"
12 #include "base/Packable.h"
13 #include "HttpBody.h"
14 
15 void
17 {
18  assert(p);
19  if (const auto size = contentSize())
20  p->append(content(), size);
21 }
22 
#define assert(EX)
Definition: assert.h:17
void packInto(Packable *) const
Definition: HttpBody.cc:16
char * p
Definition: membanger.c:43
virtual void append(const char *buf, int size)=0
Appends a c-string to existing packed data.
size_t contentSize() const
Definition: HttpBody.h:41
const char * content() const
Definition: HttpBody.h:44
int size
Definition: ModDevPoll.cc:77

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors