mime.cc File Reference
#include "squid.h"
#include "base/RegexPattern.h"
#include "debug/Messages.h"
#include "fde.h"
#include "fs_io.h"
#include "globals.h"
#include "HttpHdrCc.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#include "internal.h"
#include "MemBuf.h"
#include "MemObject.h"
#include "mime.h"
#include "SquidConfig.h"
#include "Store.h"
#include "StoreClient.h"
#include <array>
Include dependency graph for mime.cc:

Go to the source code of this file.

Classes

class  MimeIcon
 
class  MimeEntry
 

Functions

static void mimeFreeMemory (void)
 
static const SBuf mimeGetIcon (const char *fn)
 
static MimeEntrymimeGetEntry (const char *fn, int skip_encodings)
 
const char * mimeGetIconURL (const char *fn)
 
const char * mimeGetContentType (const char *fn)
 
const char * mimeGetContentEncoding (const char *fn)
 
char mimeGetTransferMode (const char *fn)
 
bool mimeGetDownloadOption (const char *fn)
 
bool mimeGetViewOption (const char *fn)
 
void mimeInit (char *filename)
 

Variables

static MimeEntryMimeTable = nullptr
 
static MimeEntry ** MimeTableTail = &MimeTable
 

Function Documentation

◆ mimeFreeMemory()

void mimeFreeMemory ( void  )
static

Definition at line 343 of file mime.cc.

References MimeTable, MimeTableTail, and MimeEntry::next.

Referenced by mimeInit().

◆ mimeGetContentEncoding()

const char * mimeGetContentEncoding ( const char *  fn)

Definition at line 195 of file mime.cc.

References MimeEntry::content_encoding, dash_str, and mimeGetEntry().

Referenced by Ftp::Gateway::appendSuccessHeader().

◆ mimeGetContentType()

const char * mimeGetContentType ( const char *  fn)

Definition at line 181 of file mime.cc.

References MimeEntry::content_type, dash_str, and mimeGetEntry().

Referenced by Ftp::Gateway::appendSuccessHeader(), and MimeIcon::load().

◆ mimeGetDownloadOption()

bool mimeGetDownloadOption ( const char *  fn)

Definition at line 216 of file mime.cc.

References MimeEntry::download_option, and mimeGetEntry().

Referenced by Ftp::Gateway::htmlifyListEntry().

◆ mimeGetEntry()

◆ mimeGetIcon()

const SBuf mimeGetIcon ( const char *  fn)
static

Definition at line 151 of file mime.cc.

References SBuf::cmp(), dash_str, MimeIcon::getName(), mimeGetEntry(), and MimeEntry::theIcon.

Referenced by mimeGetIconURL().

◆ mimeGetIconURL()

const char * mimeGetIconURL ( const char *  fn)

◆ mimeGetTransferMode()

char mimeGetTransferMode ( const char *  fn)

Definition at line 209 of file mime.cc.

References mimeGetEntry(), and MimeEntry::transfer_mode.

Referenced by ftpSendType().

◆ mimeGetViewOption()

bool mimeGetViewOption ( const char *  fn)

Definition at line 223 of file mime.cc.

References mimeGetEntry(), and MimeEntry::view_option.

Referenced by Ftp::Gateway::htmlifyListEntry().

◆ mimeInit()

Variable Documentation

◆ MimeTable

MimeEntry* MimeTable = nullptr
static

Definition at line 84 of file mime.cc.

Referenced by mimeFreeMemory(), mimeGetEntry(), and mimeInit().

◆ MimeTableTail

MimeEntry** MimeTableTail = &MimeTable
static

Definition at line 85 of file mime.cc.

Referenced by mimeFreeMemory(), and mimeInit().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors