public class WebClientSession extends WebClient
WebClientSession.
This client wraps a WebClient and makes it session aware adding features to it:
The client honors the cookies attributes:
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<WebClientSession> |
__TYPE_ARG |
| Constructor and Description |
|---|
WebClientSession(Object delegate) |
WebClientSession(WebClientSession delegate) |
| Modifier and Type | Method and Description |
|---|---|
WebClientSession |
addHeader(String name,
String value)
Configure the client to add an HTTP header to every request.
|
static WebClientSession |
create(WebClient webClient)
Create a session aware web client using the provided
webClient instance. |
boolean |
equals(Object o) |
WebClientSession |
getDelegate() |
int |
hashCode() |
static WebClientSession |
newInstance(WebClientSession arg) |
WebClientSession |
removeHeader(String name)
Removes a previously added header.
|
String |
toString() |
close, create, create, delete, delete, delete, deleteAbs, get, get, get, getAbs, head, head, head, headAbs, newInstance, patch, patch, patch, patchAbs, post, post, post, postAbs, put, put, put, putAbs, request, request, request, request, request, request, request, request, requestAbs, requestAbs, wrap, wrappublic static final io.vertx.lang.rx.TypeArg<WebClientSession> __TYPE_ARG
public WebClientSession(WebClientSession delegate)
public WebClientSession(Object delegate)
public WebClientSession getDelegate()
getDelegate in class WebClientpublic static WebClientSession create(WebClient webClient)
webClient instance.webClient - the web client instancepublic WebClientSession addHeader(String name, String value)
name - the header namevalue - the header valuepublic WebClientSession removeHeader(String name)
name - the header namepublic static WebClientSession newInstance(WebClientSession arg)
Copyright © 2021 Eclipse. All rights reserved.