# File lib/mongrel.rb, line 395
395:     def reset
396:       if @body_sent
397:         raise "You have already sent the request body."
398:       elsif @header_sent
399:         raise "You have already sent the request headers."
400:       else
401:         @header.out.truncate(0)
402:         @body.close
403:         @body = StringIO.new
404:       end
405:     end