How to cancel ongoing AP.request

How to cancel the jira request while it is being called?