RPKI Engine 1.0
|
Classes | |
class | caller |
class | http_client |
class | http_listener |
class | http_message |
class | http_queue |
class | http_request |
class | http_response |
class | http_server |
class | http_stream |
Functions | |
def | addr_to_string |
def | client |
def | localhost_addrinfo |
def | log_method |
def | server |
def | supported_address_families |
Variables | |
dictionary | client_queues = {} |
Map of (host, port) tuples to http_queue objects. | |
debug_http = False | |
Verbose chatter about HTTP streams. | |
tuple | default_client_timeout = rpki.sundial.timedelta(minutes = 15) |
Default HTTP client connection timeout. | |
tuple | default_http_version = (1, 0) |
Preferred HTTP version. | |
tuple | default_server_timeout = rpki.sundial.timedelta(minutes = 20) |
Default HTTP server connection timeouts. | |
int | default_tcp_port = 80 |
Default port for clients and servers that don't specify one. | |
enable_ipv6_clients = False | |
Whether to consider IPv6 addresses when making connections. | |
enable_ipv6_servers = True | |
Whether to enable IPv6 listeners. | |
have_ipv6 = False | |
Whether the current machine claims to support IPv6. | |
string | rpki_content_type = "application/x-rpki" |
HTTP content type used for all RPKI messages. | |
use_adns = False | |
Whether to use rpki.adns code. | |
want_persistent_client = False | |
Whether we want persistent HTTP client streams, when server also supports them. | |
want_persistent_server = False | |
Whether we want persistent HTTP server streams, when client also supports them. |
HTTP utilities, both client and server. $Id: http.py 3793 2011-04-27 04:34:52Z sra $ Copyright (C) 2009-2011 Internet Systems Consortium ("ISC") Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Portions copyright (C) 2007--2008 American Registry for Internet Numbers ("ARIN") Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND ARIN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ARIN BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
def rpki.http.addr_to_string | ( | addr | ) |
def rpki.http.client | ( | msg, | |
url, | |||
callback, | |||
errback | |||
) |
def rpki.http.localhost_addrinfo | ( | ) |
def rpki.http.log_method | ( | self, | |
msg, | |||
logger = rpki.log.debug |
|||
) |
def rpki.http.server | ( | handlers, | |
port, | |||
host = "" |
|||
) |
def rpki.http.supported_address_families | ( | enable_ipv6 | ) |
Map of (host, port) tuples to http_queue objects.
rpki::http::debug_http = False |
rpki::http::default_client_timeout = rpki.sundial.timedelta(minutes = 15) |
rpki::http::default_http_version = (1, 0) |
rpki::http::default_server_timeout = rpki.sundial.timedelta(minutes = 20) |
rpki::http::enable_ipv6_clients = False |
rpki::http::have_ipv6 = False |
Whether the current machine claims to support IPv6.
Note that just because the kernel supports it doesn't mean that the machine has usable IPv6 connectivity. I don't know of a simple portable way to probe for connectivity at runtime (the old test of "can you ping SRI-NIC.ARPA?" seems a bit dated...). Don't set this, it's set automatically by probing using the socket() system call at runtime.
rpki::http::rpki_content_type = "application/x-rpki" |
rpki::http::use_adns = False |