inline suspend fun <T> sendRequest(imsProject: IMSProject, requestMethod: HttpMethod, body: T? = null, crossinline urlBuilder: URLBuilder.(URLBuilder) -> Unit, token: JiraTokenResponse): Optional<HttpResponse>

Process the request for a single token

Return

an optional containing the response or empty if the request failed

Parameters

imsProject

the project to work on

requestMethod

The HTTP method to use

body

the body to send

urlBuilder

the URL to send the request to

token

the token to use