James Comey is a legend in his own mind.

This hack’s ego is so overinflated it’s amazing his head could fit into the hearing room yesterday.

As he told the senators, the fired director of the FBI doesn’t want to be compared to “Captains Courageous,” after which he then modestly compared himself to St. Thomas a Becket — a martyred saint.

Think about that one — the 12th-century Archbishop of Canterbury crossed King Henry II and was murdered in his church by Henry’s liegemen. St. James a Comey crossed King Donald and is now negotiating an eight-figure book deal.

Oh sure, I can see the parallels.

Trump asked Comey to find the leakers and Comey did nothing, maybe because, as he finally admitted yesterday, he himself was one of the leakers, of one of his own memos about an early meeting with the president.

Of course, Comey didn’t cop to “leaking” anything. That would be so low-rent. He just wanted to get the information out “into the public square.” How noble of him.

Comey said he was afraid to be in the same room with Trump, because he didn’t want to have any one-on-one conversations with him … but he had no problems having at least four subsequent private phone conversations with Trump.

For a 6-8 guy who fancies himself a tough cop, Comey’s a bit of a snowflake, isn’t he? Did he have his own personal safe space in his office at the J. Edgar Hoover Building?

At the slightest pressure, Comey gets sick to his stomach. A few weeks back, he said that the thought of having an impact on the 2016 election made his “mildly nauseous.” Yesterday he said another political encounter left him “queasy.” He claimed he had to do something else because of his “gut.”

Have you tried Pepto-Bismol, Mr. Director?

Whenever a Republican senator asked him for an answer that might reflect positively on Trump, St. James replied, “That’s not a question I can answer in an open setting.”

Whenever a Democrat asked him for an answer to a leading question about some fake news the alt-left media had invented, he would likewise reply, “That’s not a question I can answer in an open setting.”

Leak after leak after leak. But of course St. James explained he could never be bothered shooting down the made-up fake news stories. Like the New York Times scoop of Feb. 14 headlined, “Trump Campaign Aides Had Repeated Contacts with Russian Intelligence.”

Arkansas Sen. Tom Cotton: “Would it be fair to characterize that story as almost totally false?”

J. Edgar Comey: “Yes.”

You may recall that alt-left bombshell. Even though it was 100 percent bogus, CNN quickly announced it had “independently confirmed” the lies. The editor of the Times added his own imprimatur: “I always know who the sources are for these stories. That’s why I’m so confident.”

And now we know it was very fake news. When Thomas Becket crossed Henry II, the king famously asked, “Who shall rid me of this turbulent priest?” The noblemen stepped up.

Donald Trump asked, “Who shall rid me of this turbulent hack?”

In the end, Trump handled the hit himself. The difference is, Becket had to wait two years to become a saint. Comey was canonized instantaneously, last night, at least on CNN and MSNBC.

Buy Howie’s new book, “Kennedy Babylon: A Century of Scandal and Depravity,” at howiecarrshow.com.