Monday, November 08, 2010 at 12:06 AM.

system.verbs.builtins.webserver.responders.default.methods.HEAD

<<Script: system.verbs.builtins.webserver.responders.default.methods.HEAD; Version 1; Date: Mon, 11 May 1998 17:12:02 GMT; ID: RAB
on head (adrParamTable) {
	<<HEAD is the same as GET except that the response body should be empty
	local (methodAdr, result);
	methodAdr = webserver.util.getMethodAdr (adrParamTable^.responder, "GET");
	<<There must be a GET method if there is this HEAD method
	if ! defined(methodAdr^) {
		adrParamTable^.code = 500;
		adrParamTable^.responseBody = webserver.util.buildErrorPage ("500 Internal Server Error", "Can't process HEAD request on object " + adrParamTable^.path);
		return (true)};
	result = methodAdr^(adrParamTable);
	adrParamTable^.responseBody = ""; //Clear any data
	return (result)}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.