update https direct handler, use streambuf as local buffer