< prev index next >
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/websocket/WebSocketRequest.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 23,32 ****
--- 23,34 ----
* questions.
*/
package jdk.incubator.http.internal.websocket;
+ import java.net.Proxy;
+
/*
* https://tools.ietf.org/html/rfc6455#section-4.1
*/
public interface WebSocketRequest {
*** 39,44 ****
--- 41,51 ----
/*
* Needed for setting "Connection" and "Upgrade" headers as required by the
* WebSocket specification.
*/
void setSystemHeader(String name, String value);
+
+ /*
+ * Sets the proxy for this request.
+ */
+ void setProxy(Proxy proxy);
}
< prev index next >