Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django response headers

from django.http import HttpResponse

def index(request):
    response = HttpResponse("Hello world!")
    response["My-Header"] = "header value"
    return response
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #response #headers
ADD COMMENT
Topic
Name
7+6 =