| 64 | |
| 65 | |
| 66 | class 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 | |
| 84 | class HTTPHdr: |
no outgoing calls
no test coverage detected