Get http headers or the http/https request. @return: A dictionary of header/values. @rtype: dict
(self)
| 665 | return result |
| 666 | |
| 667 | def headers(self): |
| 668 | """ |
| 669 | Get http headers or the http/https request. |
| 670 | @return: A dictionary of header/values. |
| 671 | @rtype: dict |
| 672 | """ |
| 673 | action = self.method.soap.action |
| 674 | result = { |
| 675 | 'Content-Type': 'text/xml; charset=utf-8', |
| 676 | 'SOAPAction': action |
| 677 | } |
| 678 | result.update(self.options.headers) |
| 679 | log.debug('headers = %s', result) |
| 680 | return result |
| 681 | |
| 682 | def succeeded(self, binding, reply): |
| 683 | """ |