Lines Matching defs:headers

216     headers = Message()
217 headers.set_type(ctype)
219 headers['Content-Length'] = pdict['CONTENT-LENGTH']
222 fs = FieldStorage(fp, headers=headers, encoding=encoding, errors=errors,
274 headers = {}
320 headers: a dictionary(-like) object (sometimes email.message.Message or a
321 subclass thereof) containing *all* headers
330 def __init__(self, fp=None, headers=None, outerboundary=b'',
344 headers : header dictionary-like object; default:
394 if headers is None:
395 headers = {'content-type':
397 if headers is None:
398 headers = {}
401 headers['content-type'] = "application/x-www-form-urlencoded"
403 headers['content-type'] = environ['CONTENT_TYPE']
407 headers['content-length'] = environ['CONTENT_LENGTH']
409 if not (isinstance(headers, (Mapping, Message))):
410 raise TypeError("headers must be mapping or an instance of "
412 self.headers = headers
436 if 'content-disposition' in self.headers:
437 cdisp, pdict = parse_header(self.headers['content-disposition'])
460 if 'content-type' in self.headers:
461 ctype, pdict = parse_header(self.headers['content-type'])
475 if 'content-length' in self.headers:
477 clen = int(self.headers['content-length'])
658 headers = parser.close()
660 # Some clients add Content-Length for part headers, ignore them
661 if 'content-length' in headers:
662 del headers['content-length']
666 part = klass(self.fp, headers, ib, environ, keep_blank_values,
856 Write minimal HTTP headers and dump all information provided to
983 In addition, HTTP headers sent by the server may be passed in the