All Downloads are FREE. Search and download functionalities are using the official Maven repository.

burp.api.montoya.websocket.extension.ExtensionWebSocketCreation Maven / Gradle / Ivy

There is a newer version: 2024.12
Show newest version
/*
 * Copyright (c) 2023. PortSwigger Ltd. All rights reserved.
 *
 * This code may be used to extend the functionality of Burp Suite Community Edition
 * and Burp Suite Professional, provided that this usage does not violate the
 * license terms for those products.
 */

package burp.api.montoya.websocket.extension;

import burp.api.montoya.http.message.responses.HttpResponse;

import java.util.Optional;

/**
 * Result of a WebSocket creation attempt
 */
public interface ExtensionWebSocketCreation
{
    /**
     * The status of the WebSocket creation attempt.
     *
     * @return The {@link ExtensionWebSocketCreationStatus} creation status
     */
    ExtensionWebSocketCreationStatus status();

    /**
     * The created WebSocket.
     *
     * @return the created {@link ExtensionWebSocket}
     */
    Optional webSocket();

    /**
     * The HTTP response from the WebSocket creation attempt.
     *
     * @return the {@link HttpResponse}
     */
    Optional upgradeResponse();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy