Add httpd-discard-buffer function.