src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/websocket/WebSocketRequest.java
branchhttp-client-branch
changeset 55764 34d7cc00f87a
parent 47216 71c04702a3d5
child 55818 725576a6821e
equal deleted inserted replaced
55763:634d8e14c172 55764:34d7cc00f87a
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
    26 package jdk.incubator.http.internal.websocket;
    26 package jdk.incubator.http.internal.websocket;
    27 
    27 
       
    28 import java.net.Proxy;
       
    29 
    28 /*
    30 /*
    29  * https://tools.ietf.org/html/rfc6455#section-4.1
    31  * https://tools.ietf.org/html/rfc6455#section-4.1
    30  */
    32  */
    31 public interface WebSocketRequest {
    33 public interface WebSocketRequest {
    32 
    34 
    39     /*
    41     /*
    40      * Needed for setting "Connection" and "Upgrade" headers as required by the
    42      * Needed for setting "Connection" and "Upgrade" headers as required by the
    41      * WebSocket specification.
    43      * WebSocket specification.
    42      */
    44      */
    43     void setSystemHeader(String name, String value);
    45     void setSystemHeader(String name, String value);
       
    46 
       
    47     /*
       
    48      * Sets the proxy for this request.
       
    49      */
       
    50     void setProxy(Proxy proxy);
    44 }
    51 }