stub_url.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 "url.cc"
12 #include "tests/STUB.h"
13 
14 #include "URL.h"
16 void URL::touch() STUB
17 bool URL::parse(const HttpRequestMethod&, const char *) STUB_RETVAL(true)
18 void URL::host(const char *) STUB
19 static SBuf nil;
20 const SBuf &URL::path() const STUB_RETVAL(nil)
21 const SBuf &URL::SlashPath()
22 {
23  static SBuf slash("/");
24  return slash;
25 }
27 {
28  static SBuf asterisk("*");
29  return asterisk;
30 }
31 SBuf &URL::authority(bool) const STUB_RETVAL(nil)
32 SBuf &URL::absolute() const STUB_RETVAL(nil)
33 void urlInitialize() STUB
34 char *urlCanonicalClean(const HttpRequest *) STUB_RETVAL(nullptr)
35 const char *urlCanonicalFakeHttps(const HttpRequest *) STUB_RETVAL(nullptr)
36 bool urlIsRelative(const char *) STUB_RETVAL(false)
37 char *urlMakeAbsolute(const HttpRequest *, const char *)STUB_RETVAL(nullptr)
38 char *urlRInternal(const char *, unsigned short, const char *, const char *) STUB_RETVAL(nullptr)
39 char *urlInternal(const char *, const char *) STUB_RETVAL(nullptr)
40 int matchDomainName(const char *, const char *, uint) STUB_RETVAL(0)
41 int urlCheckRequest(const HttpRequest *) STUB_RETVAL(0)
42 char *urlHostname(const char *) STUB_RETVAL(nullptr)
44 
Definition: SBuf.h:87
void urlInitialize(void)
Definition: url.cc:75
static struct node * parse(FILE *fp)
Definition: parse.c:995
int matchDomainName(const char *h, const char *d, uint flags)
Definition: url.cc:660
URL()
Definition: URL.h:29
static const SBuf & Asterisk()
the static '*' pseudo-URL
Definition: stub_url.cc:26
Definition: URL.h:24
char * urlHostname(const char *url)
Definition: url.cc:858
#define STUB_RETVAL(x)
Definition: STUB.h:41
#define true
Definition: GnuRegex.c:234
bool urlIsRelative(const char *url)
Definition: url.cc:568
SBuf & authority(bool requirePort=false) const
Definition: url.cc:470
int urlCheckRequest(const HttpRequest *r)
Definition: url.cc:757
#define STUB
macro to stub a void function.
Definition: STUB.h:33
void touch()
clear the cached URI display forms
Definition: stub_url.cc:20
char * urlInternal(const char *dir, const char *name)
void urlExtMethodConfigure(void)
char * urlMakeAbsolute(const HttpRequest *req, const char *relUrl)
Definition: url.cc:601
const char * urlCanonicalFakeHttps(const HttpRequest *request)
Definition: url.cc:547
char * urlRInternal(const char *host, unsigned short port, const char *dir, const char *name)
#define false
Definition: GnuRegex.c:233
char * urlCanonicalClean(const HttpRequest *request)
Definition: url.cc:518

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors