GNUnet 0.22.2
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)
 
def result_nodes (self, document, env, node, is_ref)
 

Detailed Description

Definition at line 510 of file httpdomain.py.

Member Function Documentation

◆ result_nodes() [1/2]

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
Peermap of PeerIdentities to "struct PeerEntry" (for fast lookup).
Definition: peer.c:63

References map.

◆ result_nodes() [2/2]

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

References map.


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