Lines Matching refs:write
35 def write(self, data): member in BaseProtocol
37 return self.transport.write(data)
50 self.write("HTTP/1.1 200 OK\r\n")
51 self.write("Content-Length: %d\r\n\r\n" % len(response))
53 self.write(response)
78 self.write("welcome to the jungle baby\r\n")
85 self.write("HTTP/1.1 200 OK\r\n")
86 self.write("Cache-Contr")
95 self.write("HTTP/1.1 200 OK\r\n")
96 self.write("Cache-Contr")
98 self.write("ol: private\r\n\r\nwe've got fun and games")
106 self.write("HTTP/1.1 302 Moved Temporarily\r\n")
107 self.write("Content-Length: 0\r\n")
108 …self.write("Location: http://shopping.yahoo.com/p:Canon PowerShot SD630 Digital Camera:1993588104;…
116 self.write("HTTP/1.1 404 Not Found\r\n\r\n")
121 self.write("HTTP/1.1 200 OK\r\n")
123 self.write("\r\n")
134 self.write("HTTP/1.1 200 OK\r\n")
135 self.write("Content-Length: 5\r\n\r\n")
138 self.write("HE")
140 self.write("HELLO")
150 self.write("HTTP/1.1 200 OK\n")
151 self.write("Content-Length: 5\n\n")
153 self.write("HELLO")
162 self.write("HTTP/1.1 200 OK\n")
163 self.write("Content-Length: 943\n\n")
165 self.write(open("./stfu.jpg").read())
177 self.write("HTTP/1.1 302 Moved Temporarily\r\n")
178 self.write("Content-Length: 0\r\n")
179 self.write("Location: http://localhost:8011/\r\n")
180 self.write("\r\n")
205 if self.count == 0: self.write("HTTP/1.1 200 OK\r\n\r\n")
217 if self.count == 0: self.write("HTTP/1.1 200 OK\r\n\r\n")
224 self.write("all work and no play makes jack a dull boy %s\n" % count)