Green’s Dictionary of Slang

cap v.2

also kap
[Lat. capias, you may take – a term used in a variety of legal writs, e.g. capias ad respondendum, to enforce attendance at court, and capias ad satisfaciendum, after judgement, to imprison the defendant until the plaintiff’s claim is satisfied]

(UK Und.) to swear an oath.

[UK]B.E. Dict. Canting Crew.
[UK]A. Smith Lives of Most Notorious Highway-men, etc. (1926) 203: Cap, to swear. I’ll cap downright, i.e., I’ll swear home.
[UK]New Canting Dict.
[UK]Bailey Universal Etym. Eng. Dict.
[UK]B.M. Carew Life and Adventures.
[UK]J. Poulter Discoveries (1774) 43: He kaps quare; he swears false.
[UK]Grose Classical Dict. of the Vulgar Tongue.
[UK]G. Andrewes Dict. Sl. and Cant.
[UK]Lex. Balatronicum.
[UK]Flash Dict.
[UK]Duncombe New and Improved Flash Dict.