What was Rudyard Kipling’s attitude toward the British Empire, and how did he convey his message in his novella, The Man Who Shall Be King?

What was Rudyard Kipling’s attitude toward the British Empire, and how did he convey his message in his novella, The Man Who Shall Be King?