| OLD | NEW |
| 1 Copyright (C) 2012 by Marijn Haverbeke <marijnh@gmail.com> | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 """ |
| 4 Non-blocking HTTP components. |
| 5 """ |
| 6 |
| 7 __copyright__ = """\ |
| 8 Copyright (c) 2008-2009 Mark Nottingham |
| 9 |
| 3 Permission is hereby granted, free of charge, to any person obtaining a copy | 10 Permission is hereby granted, free of charge, to any person obtaining a copy |
| 4 of this software and associated documentation files (the "Software"), to deal | 11 of this software and associated documentation files (the "Software"), to deal |
| 5 in the Software without restriction, including without limitation the rights | 12 in the Software without restriction, including without limitation the rights |
| 6 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | 13 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 7 copies of the Software, and to permit persons to whom the Software is | 14 copies of the Software, and to permit persons to whom the Software is |
| 8 furnished to do so, subject to the following conditions: | 15 furnished to do so, subject to the following conditions: |
| 9 | 16 |
| 10 The above copyright notice and this permission notice shall be included in | 17 The above copyright notice and this permission notice shall be included in |
| 11 all copies or substantial portions of the Software. | 18 all copies or substantial portions of the Software. |
| 12 | 19 |
| 13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | 20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 14 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | 21 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | 22 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 16 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | 23 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 17 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 24 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 18 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | 25 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 19 THE SOFTWARE. | 26 THE SOFTWARE. |
| 27 """ |
| 20 | 28 |
| 21 Please note that some subdirectories of the CodeMirror distribution | 29 from client import Client |
| 22 include their own LICENSE files, and are released under different | 30 from server import Server |
| 23 licences. | 31 from push_tcp import run, stop, schedule |
| 32 from http_common import dummy, header_dict, get_hdr, \ |
| 33 safe_methods, idempotent_methods, hop_by_hop_hdrs |
| OLD | NEW |