What is the meaning of Caponier?

A work made across or in a ditch, to protect it from the enemy (as fire from it could cover the ditch), or to serve as a covered passageway (e.g. to outworks).

Source: wiktionary.org