Nitric oxide plays a crucial role in midgut immunity under microsporidian infection in Antheraea pernyi.