Part of Page View In Hierarchy
Line # | Kind | Name | Docs |
---|---|---|---|
53 | Method | __init__ | Undocumented |
65 | Method | create_tabs_and_attribs | Based on a list of tuples, create a hash-table with tagnames plus attribute names as keys. |
77 | Method | rewrite_url | Rewrite a matched URL attribute value snippet. |
84 | Method | rewrite | Undocumented |
108 | Method | handle_tag | Read and parse tag contents in blocks of the configured max_page_size. Rewrite them based on the tag type: script or style. |
128 | Method | buffered_writer | This function writes data to the output buffer and writes the output buffer to the client if necessary. |
136 | Method | parsing_reader | No summary |
175 | Method | handle_attribute | Undocumented |
227 | Method | keep_reading | No summary |
261 | Method | parse_until_interesting | Undocumented |
286 | Method | write_output | No summary |
305 | Method | is_url_attribute | Returns True if the attribute in the tag should contain a URL. |
Based on a list of tuples, create a hash-table with tagnames plus attribute names as keys.
Read and parse tag contents in blocks of the configured max_page_size. Rewrite them based on the tag type: script or style.
This function writes data to the output buffer and writes the output buffer to the client if necessary.
This function is used to read a block of data from the server response and parse it until the end of the response or tag close. This function is used for the JSPage and CSSPage classes as reader and should not update the input buffer of the Page instance with data within <script> and <style> tags.
Keep reading from the input stream in blocks until one of the requested states is reached or the maximum size is passed. Fill the input buffer with the data and return. Do not write data to the output buffer because this data is going to be rewritten. The first time in the loop, use the current input buffer and do not read any data yet.