MCPcopy Create free account
hub / github.com/beanshell/beanshell / error

Method error

src/bsh/util/Httpd.java:207–218  ·  view source on GitHub ↗
(int num, String s)

Source from the content-addressed store, hash-verified

205 }
206
207 private void error(int num, String s)
208 {
209 s = "<html><h1>" + s + "</h1></html>";
210 if(isHttp1)
211 {
212 pout.println("HTTP/1.0 " + num + " " + s);
213 pout.println("Content-type: text/html");
214 pout.println("Content-length: " + s.length() + "\n");
215 }
216
217 pout.println(s);
218 }
219}
220

Callers 2

runMethod · 0.95
serveFileMethod · 0.95

Calls 1

printlnMethod · 0.65

Tested by

no test coverage detected