MCPcopy Create free account
hub / github.com/apache/trafficserver / URL

Class URL

tools/gdb-helpers.py:66–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66class URL:
67
68 def __init__(self, val):
69 self.impl = val['m_url_impl'].dereference()
70
71 def __str__(self):
72 return "{}://{}/{}".format(self.scheme(), self.host(), self.path())
73
74 def scheme(self):
75 return ats_str(self.impl['m_ptr_scheme'], self.impl['m_len_scheme'])
76
77 def host(self):
78 return ats_str(self.impl['m_ptr_host'], self.impl['m_len_host'])
79
80 def path(self):
81 return ats_str(self.impl['m_ptr_path'], self.impl['m_len_path'])
82
83
84class HTTPHdr:

Callers 2

urlMethod · 0.70
url_commandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected