Skip to content

Commit 790a2fe

Browse files
committed
Engine.getWebSocketHeaders
1 parent 7b9a7b5 commit 790a2fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/hudson/remoting/Engine.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@ public void setWebSocket(boolean webSocket) {
413413
this.webSocket = webSocket;
414414
}
415415

416+
@CheckForNull
417+
public Map<String, String> getWebSocketHeaders() {
418+
return webSocketHeaders != null ? Map.copyOf(webSocketHeaders) : Map.of();
419+
}
420+
416421
/**
417422
* Sets map of custom websocket headers. These headers will be applied to the websocket connection to Jenkins.
418423
*

0 commit comments

Comments
 (0)