Fixed #23977 -- Added setdefault method to HttpResponse

Ticket #23977. Created set_default method for more convenient default headers setting in HttpResponse.
I renamed it from set_default to setdefault because it very close to be the same. Maybe we should add return there to make behaviour the same excepting case and charset ignoring?