245
}
246
247
>
func (h *httpHandler) cancelOperation(service, operation, token string, writer http.ResponseWriter, request *http.Request) {
server.go
248
>
options := nexus.CancelOperationOptions{Header: httpHeaderToNexusHeader(request.Header)}
249
>
250
>
ctx, cancel, ok := h.contextWithTimeoutFromHTTPRequest(writer, request)
251
>
if !ok {
252
return
253
}
255
>
256
>
ctx = nexus.WithHandlerContext(ctx, nexus.HandlerInfo{
257
>
Service: service,
258
>
Operation: operation,
259
>
Header: options.Header,
260
>
})
261
>
if err := h.options.Handler.CancelOperation(ctx, service, operation, token, options); err != nil {
262
h.WriteFailure(writer, request, err)
263
return