The constants module

The constants module contains classes which define constants relating to HTTP data.

The Keys class

Inheritance diagram of pyamp.web.http.constants.Keys

class pyamp.web.http.constants.Keys

The Keys class defines constants that are used as keys to access certain dictionary values.

ErrorMessage

The key for the entry containing the error message.

The ContentTypes class

Inheritance diagram of pyamp.web.http.constants.ContentTypes

class pyamp.web.http.constants.ContentTypes[source]

The ContentTypes class contains constants pertaining to different types of content.

Bmp

A BMP image content.

Css

CSS content.

Gif

A GIF image content.

Ico

An ICO image content.

JavaScript

JavaScript content.

Json

JSON content.

Png

An PNG image content.

TextHtml

Standard text HTML content.

The StatusCodes class

Inheritance diagram of pyamp.web.http.constants.StatusCodes

class pyamp.web.http.constants.StatusCodes[source]

The StatusCodes class contains constants pertaining to HTTP status codes.

FileNotFound

The file not found status code.

Found

The found status code.

InternalServerError

The internal server error status code.

MovedPermanently

The moved permanently status code.

OK

The OK status code.

The HeaderIds class

Inheritance diagram of pyamp.web.http.constants.HeaderIds

class pyamp.web.http.constants.HeaderIds[source]

The HeaderIds class contains constants pertaining to header identifiers.

ContentType

The content type header id.

Location

The location header id.

UserAgent

The user agent header id.

The OperatingSystems class

Inheritance diagram of pyamp.web.http.constants.OperatingSystems

class pyamp.web.http.constants.OperatingSystems[source]

The OperatingSystems class contains constants pertaining to the strings used to identify various operating systems.

BeOS

The BeOS OS.

Linux

The Linux OS.

MacOS

The Mac OS.

OS2

The OS/2 OS.

OpenBSD

The OpenBSD OS.

QNX

The QNX OS.

SearchBot

The SearchBot OS.

SunOS

The Sun OS OS.

Windows2000

The Windows 2000 OS.

Windows3_11

The Windows 3.11 OS.

Windows7

The Windows 7 OS.

Windows95

The Windows 95 OS.

Windows98

The Windows 98 OS.

WindowsME

The Windows ME OS.

WindowsNT4

The Windows NT 4.0 OS.

WindowsServer2003

The Windows Server 2003 OS.

WindowsVista

The Windows Vista OS.

WindowsXP

The Windows XP OS.

Table Of Contents

Previous topic

The requests module

Next topic

The headers module

This Page