Ticket #3273: iweb.py

File iweb.py, 1.5 KB (added by Jean-Paul Calderone, 10 years ago)

minimal first attempt

Line 
1# -*- test-case-name: twisted.web.test -*-
2# Copyright (c) 2008 Twisted Matrix Laboratories.
3# See LICENSE for details.
4
5"""
6Interface definitions for L{twisted.web}.
7"""
8
9from zope.interface import Attribute
10
11from twisted.internet.interfaces import IConsumer
12
13class IRequest(IConsumer):
14    """
15    """
16    method = Attribute("")
17    uri = Attribute("")
18    path = Attribute("")
19    args = Attribute("")
20
21    received_headers = Attribute("")
22    requestHeaders = Attribute("")
23
24    headers = Attribute("")
25    responseHeaders = Attribute("")
26
27    def getHeader(name):
28        pass
29
30
31    def getCookie(key):
32        pass
33
34
35    def finish():
36        pass
37
38
39    def addCookie(k, v, expires=None, domain=None, path=None, max_age=None, comment=None, secure=None):
40        pass
41
42
43    def setResponseCode(code, message=None):
44        pass
45
46
47    def setHeader(k, v):
48        pass
49
50
51    def redirect(url):
52        pass
53
54
55    def setLastModified(when):
56        pass
57
58
59    def setETag(etag):
60        pass
61
62
63
64    def getAllHeaders():
65        pass
66
67
68    def getRequestHostname():
69        pass
70
71
72    def getHost():
73        pass
74
75
76    def setHost(host):
77        pass
78
79
80    def getClientIP():
81        pass
82
83
84    def isSecure():
85        pass
86
87
88    def getUser():
89        pass
90
91
92    def getPassword():
93        pass
94
95
96    def getClient():
97        pass
98
99
100    def notifyFinish():
101        pass
102
103
104    def getSession():
105        pass
106
107
108    def prePathURL():
109        pass
110
111
112    def URLPath():
113        pass
114
115
116    def rememberRootURL():
117        pass
118
119
120    def getRootURL():
121        pass