@on_settings should be given flags and headers.

A SETTINGS frame don't have stream_id and status_code.