public interface HttpConnection
Modifier and Type | Method and Description |
---|---|
Set<MuRequest> |
activeRequests() |
Set<MuWebSocket> |
activeWebsockets()
The websockets on this connection.
|
String |
cipher() |
long |
completedRequests() |
String |
httpsProtocol()
Gets the HTTPS protocol, for example "TLSv1.2" or "TLSv1.3"
|
long |
invalidHttpRequests() |
boolean |
isHttps() |
String |
protocol()
The HTTP protocol for the request.
|
long |
rejectedDueToOverload() |
InetSocketAddress |
remoteAddress() |
MuServer |
server() |
Instant |
startTime() |
String protocol()
HTTP/1.1
or HTTP/2
boolean isHttps()
true
if the connnection is secured over HTTPS, otherwise false
String httpsProtocol()
null
if this connection is not over HTTPS.String cipher()
null
if this connection is not over HTTPS.Instant startTime()
InetSocketAddress remoteAddress()
long completedRequests()
long invalidHttpRequests()
long rejectedDueToOverload()
MuServerBuilder.withHandlerExecutor(ExecutorService)
rejected a new response.Set<MuRequest> activeRequests()
Set<MuWebSocket> activeWebsockets()
Note that in Mu Server websockets are only on HTTP/1.1 connections and there is a 1:1 mapping between a websocket and an HTTP Connection. This means the returned set is either empty or has a size of 1.
MuServer server()
Copyright © 2017–2021. All rights reserved.