Add Input::is_post()

Because the branch of the POST method is commonly used in the application.