1export function post(path, params, method='POST') { 2 const form = document.createElement("form"); 3 form.method = method; 4 form.action = path; 5 6 for (const key in params) { 7 if (params.hasOwnProperty(key)) { 8 const hiddenField = document.createElement("input"); 9 hiddenField.type = "hidden"; 10 hiddenField.name = key; 11 hiddenField.value = params[key]; 12 13 form.appendChild(hiddenField); 14 } 15 } 16 17 document.body.appendChild(form); 18 form.submit(); 19}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.