mime.cc File Reference
#include "squid.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 "RequestFlags.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 = NULL
 
static MimeEntry ** MimeTableTail = &MimeTable
 

Function Documentation

void mimeFreeMemory ( void  )
static

Definition at line 338 of file mime.cc.

References MimeTable, and MimeEntry::next.

Referenced by mimeInit(), and SquidShutdown().

const char* mimeGetContentEncoding ( const char *  fn)
const char* mimeGetContentType ( const char *  fn)
bool mimeGetDownloadOption ( const char *  fn)

Definition at line 211 of file mime.cc.

References MimeEntry::download_option, and mimeGetEntry().

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

const SBuf mimeGetIcon ( const char *  fn)
static

Definition at line 146 of file mime.cc.

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

Referenced by mimeGetIconURL().

char mimeGetTransferMode ( const char *  fn)

Definition at line 204 of file mime.cc.

References mimeGetEntry(), and MimeEntry::transfer_mode.

Referenced by ftpSendType().

bool mimeGetViewOption ( const char *  fn)

Definition at line 218 of file mime.cc.

References mimeGetEntry(), and MimeEntry::view_option.

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

Variable Documentation

MimeEntry* MimeTable = NULL
static

Definition at line 79 of file mime.cc.

Referenced by mimeFreeMemory().

MimeEntry** MimeTableTail = &MimeTable
static

Definition at line 80 of file mime.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors