#!/usr/bin/env python
# $SnapHashLicense:
#
# SnapLogic - Open source data services
#
# Copyright (C) 2008, SnapLogic, Inc. All rights reserved.
#
# See http://www.snaplogic.org for more information about
# the SnapLogic project.
#
# This program is free software, distributed under the terms of
# the GNU General Public License Version 2. See the LEGAL file
# at the top of the source tree.
#
# "SnapLogic" is a trademark of SnapLogic, Inc.
#
#
# $
# $Id: headers.py 5326 2008-11-20 09:20:34Z dhiraj $
"""
Defines SnapLogic-specific HTTP headers.
"""
SNAPI_HEADER_PREFIX = "X-Snapi-"
CC_TOKEN_HEADER = SNAPI_HEADER_PREFIX + "cc-token"
SERVER_TOKEN_HEADER = SNAPI_HEADER_PREFIX + "server-token"
SNAPSTREAM_CONTINUED = SNAPI_HEADER_PREFIX + "snapstream-continued"
STATUS_HEADER = SNAPI_HEADER_PREFIX + "status"
INVOKER_HEADER = SNAPI_HEADER_PREFIX + "invoker"
#
# The WSGI layer makes all header names upper case and converts "-" to "_". These
# constants are the WSGI version of some of the above headers.
#
WSGI_SERVER_TOKEN_HEADER = "HTTP_X_SNAPI_SERVER_TOKEN"
WSGI_CC_TOKEN_HEADER = "HTTP_X_SNAPI_CC_TOKEN"
WSGI_INVOKER_HEADER = "HTTP_X_SNAPI_INVOKER"
|