GNUnet  0.20.0
httpdomain.httpdomain.HTTPXRefHeaderRole Class Reference
Inheritance diagram for httpdomain.httpdomain.HTTPXRefHeaderRole:
[legend]
Collaboration diagram for httpdomain.httpdomain.HTTPXRefHeaderRole:
[legend]

Public Member Functions

def result_nodes (self, document, env, node, is_ref)
 

Detailed Description

Definition at line 510 of file httpdomain.py.

Member Function Documentation

◆ result_nodes()

def httpdomain.httpdomain.HTTPXRefHeaderRole.result_nodes (   self,
  document,
  env,
  node,
  is_ref 
)

Definition at line 512 of file httpdomain.py.

512  def result_nodes(self, document, env, node, is_ref):
513  header = node[0][0]
514  rawsource = node[0].rawsource
515  if header not in HEADER_REFS:
516  _header = '-'.join(map(lambda i: i.title(), header.split('-')))
517  if _header not in HEADER_REFS:
518  return [nodes.emphasis(header, header)], []
519  url = str(HEADER_REFS[header])
520  node = nodes.reference(rawsource, header, refuri=url)
521  return [node], []
522 
523 
static struct GNUNET_CONTAINER_MultiPeerMap * map
Handle to the map used to store old latency values for peers.

References map.


The documentation for this class was generated from the following file: