stub_libanyp.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2020 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 #include "squid.h"
10 
11 #define STUB_API "anyp/libanyp.la"
12 #include "tests/STUB.h"
13 
14 #include "anyp/Uri.h"
17 bool AnyP::Uri::parse(const HttpRequestMethod&, const SBuf &) STUB_RETVAL(true)
18 void AnyP::Uri::host(const char *) STUB
19 static SBuf nil;
20 const SBuf &AnyP::Uri::path() const STUB_RETVAL(nil)
21 void AnyP::Uri::addRelativePath(const char *) STUB
22 const SBuf &AnyP::Uri::SlashPath()
23 {
24  static SBuf slash("/");
25  return slash;
26 }
28 {
29  static SBuf asterisk("*");
30  return asterisk;
31 }
34 void urlInitialize() STUB
35 const char *urlCanonicalFakeHttps(const HttpRequest *) STUB_RETVAL(nullptr)
36 bool urlIsRelative(const char *) STUB_RETVAL(false)
37 char *urlRInternal(const char *, unsigned short, const char *, const char *) STUB_RETVAL(nullptr)
38 char *urlInternal(const char *, const char *) STUB_RETVAL(nullptr)
39 int matchDomainName(const char *, const char *, enum MatchDomainNameFlags) STUB_RETVAL(0)
42 
#define STUB_RETVAL(x)
Definition: STUB.h:41
Definition: SBuf.h:86
int urlCheckRequest(const HttpRequest *r)
Definition: Uri.cc:845
static struct node * parse(FILE *fp)
Definition: parse.c:995
int matchDomainName(const char *h, const char *d, MatchDomainNameFlags flags)
Definition: Uri.cc:748
void urlExtMethodConfigure(void)
Definition: forward.h:14
#define true
Definition: GnuRegex.c:234
MatchDomainNameFlags
Definition: Uri.h:223
char * urlInternal(const char *dir, const char *name)
#define STUB
macro to stub a void function.
Definition: STUB.h:33
SBuf & authority(bool requirePort=false) const
Definition: Uri.cc:578
char * urlRInternal(const char *host, unsigned short port, const char *dir, const char *name)
const char * urlCanonicalFakeHttps(const HttpRequest *request)
Definition: Uri.cc:661
void urlInitialize(void)
Definition: Uri.cc:136
SBuf & absolute() const
Definition: Uri.cc:596
Uri()
Definition: Uri.h:35
void Controller::create() STUB void Controller Controller nil
bool urlIsRelative(const char *url)
Definition: Uri.cc:688
#define false
Definition: GnuRegex.c:233
static const SBuf & Asterisk()
the static '*' pseudo-URI
Definition: Uri.cc:84
void touch()
clear the cached URI display forms
Definition: Uri.cc:570

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors