stub_libanyp.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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"
17bool AnyP::Uri::parse(const HttpRequestMethod&, const SBuf &) STUB_RETVAL(true)
18void AnyP::Uri::host(const char *) STUB
19static SBuf nil;
20const SBuf &AnyP::Uri::path() const STUB_RETVAL(nil)
21void AnyP::Uri::addRelativePath(const char *) STUB
22const SBuf &AnyP::Uri::SlashPath()
23{
24 static SBuf slash("/");
25 return slash;
26}
28{
29 static SBuf asterisk("*");
30 return asterisk;
31}
35const char *urlCanonicalFakeHttps(const HttpRequest *) STUB_RETVAL(nullptr)
36bool urlIsRelative(const char *) STUB_RETVAL(false)
37char *urlRInternal(const char *, unsigned short, const char *, const char *) STUB_RETVAL(nullptr)
38char *urlInternal(const char *, const char *) STUB_RETVAL(nullptr)
39int matchDomainName(const char *, const char *, enum MatchDomainNameFlags) STUB_RETVAL(0)
42
#define true
Definition: GnuRegex.c:241
#define false
Definition: GnuRegex.c:240
#define STUB
macro to stub a void function.
Definition: STUB.h:33
#define STUB_RETVAL(x)
Definition: STUB.h:41
bool urlCheckRequest(const HttpRequest *r)
Definition: Uri.cc:833
bool urlIsRelative(const char *url)
Definition: Uri.cc:676
void urlInitialize(void)
Definition: Uri.cc:137
int matchDomainName(const char *h, const char *d, MatchDomainNameFlags flags)
Definition: Uri.cc:736
const char * urlCanonicalFakeHttps(const HttpRequest *request)
Definition: Uri.cc:649
char * urlRInternal(const char *host, unsigned short port, const char *dir, const char *name)
MatchDomainNameFlags
Definition: Uri.h:223
char * urlInternal(const char *dir, const char *name)
void urlExtMethodConfigure(void)
void touch()
clear the cached URI display forms
Definition: Uri.cc:558
SBuf & authority(bool requirePort=false) const
Definition: Uri.cc:566
Uri()
Definition: Uri.h:35
SBuf & absolute() const
Definition: Uri.cc:584
static const SBuf & Asterisk()
the static '*' pseudo-URI
Definition: Uri.cc:85
Definition: SBuf.h:94
Definition: forward.h:15
void Controller::create() STUB void Controller Controller nil
static struct node * parse(FILE *fp)
Definition: parse.c:965

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors