Package reactor.netty.http.client
Interface HttpClientInfos
- All Superinterfaces:
HttpInfos
- All Known Subinterfaces:
HttpClientRequest,HttpClientResponse
An Http Reactive Channel with several accessors related to HTTP flow: resource URL,
information for redirections etc...
- Since:
- 0.9.3
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the currentContextViewassociated with the Mono/Flux exposed viaHttpClient.ResponseReceiver.response()or related terminating API.String[]Return the previous redirections or empty array.Return outbound headers to be sent.Return the fully qualified URL of the requested resource.Methods inherited from interface reactor.netty.http.HttpInfos
cookies, fullPath, isKeepAlive, isWebsocket, method, path, requestId, uri, version
-
Method Details
-
currentContext
Deprecated.UsecurrentContextView(). This method will be removed in version 1.1.0.Return the currentContextassociated with the Mono/Flux exposed viaHttpClient.ResponseReceiver.response()or related terminating API.- Returns:
- the current user
Context
-
currentContextView
ContextView currentContextView()Return the currentContextViewassociated with the Mono/Flux exposed viaHttpClient.ResponseReceiver.response()or related terminating API.- Returns:
- the current user
ContextView - Since:
- 1.0.0
-
redirectedFrom
String[] redirectedFrom()Return the previous redirections or empty array.- Returns:
- the previous redirections or empty array
-
requestHeaders
HttpHeaders requestHeaders()Return outbound headers to be sent.- Returns:
- outbound headers to be sent
-
resourceUrl
Return the fully qualified URL of the requested resource. In case of redirects, return the URL the last redirect led to.- Returns:
- The URL of the retrieved resource. This method can return null in case there was an error before the client could create the URL
-
currentContextView().