End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Date#httpdate
d.httpdate → string
ext/date/date_core.c
View on GitHub ↗
static VALUE
d_lite_httpdate(VALUE self)
{
volatile VALUE dup = dup_obj_with_new_offset(self, 0);
return strftimev("%a, %d %b %Y %T GMT", dup, set_tmx);
}
This method is equivalent to strftime(‘%a, %d %b %Y %T GMT’). See also RFC 2616.