httpbase.constants

Constants

Constants used within the library and suitable for use in packages that build on top of it.

DEFAULT_DATE_FORMAT

The default date format for DateField. Value: "%Y-%m-%d %H:%M:%s"

TEMPLATE_VARIABLE_PATTERN

The regex pattern used to find template variables in Route. Value: r"{(\w+)}"

class httpbase.constants.HTTPMethods

Container class for HTTP request methods.

class httpbase.constants.HTTPResponseCodes

Container class for HTTP response codes.

class httpbase.constants.null[source]

Class for indicating when no value was passed when None is a possible valid value.