stub_libanyp.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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)
40bool urlCheckRequest(const HttpRequest *) STUB_RETVAL(false)
42
#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:919
bool urlIsRelative(const char *url)
Definition: Uri.cc:760
void urlInitialize(void)
Definition: Uri.cc:138
int matchDomainName(const char *h, const char *d, MatchDomainNameFlags flags)
Definition: Uri.cc:820
const char * urlCanonicalFakeHttps(const HttpRequest *request)
Definition: Uri.cc:733
char * urlRInternal(const char *host, unsigned short port, const char *dir, const char *name)
MatchDomainNameFlags
Definition: Uri.h:228
char * urlInternal(const char *dir, const char *name)
void urlExtMethodConfigure(void)
void touch()
clear the cached URI display forms
Definition: Uri.cc:638
SBuf & authority(bool requirePort=false) const
Definition: Uri.cc:646
Uri()
Definition: Uri.h:35
SBuf & absolute() const
Definition: Uri.cc:668
static const SBuf & Asterisk()
the static '*' pseudo-URI
Definition: Uri.cc:86
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