| Package | Description |
|---|---|
| com.linecorp.armeria.client |
Client core.
|
| com.linecorp.armeria.common |
Common types.
|
| com.linecorp.armeria.common.stream |
Streamed message types.
|
| com.linecorp.armeria.internal.common |
Various classes used internally.
|
| com.linecorp.armeria.server |
Server core.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ClientRequestContextCaptor
Captures the
ClientRequestContexts created by the current thread. |
| Modifier and Type | Method and Description |
|---|---|
default SafeCloseable |
ClientRequestContext.push()
Pushes this context to the thread-local stack.
|
static SafeCloseable |
Clients.withContextCustomizer(Consumer<? super ClientRequestContext> contextCustomizer)
Sets the specified
ClientRequestContext customization function in a thread-local variable so that
the customized context is used when the client invokes a request from the current thread. |
static SafeCloseable |
Clients.withHttpHeader(CharSequence name,
Object value)
Sets the specified HTTP header in a thread-local variable so that the header is sent by the client call
made from the current thread.
|
static SafeCloseable |
Clients.withHttpHeader(CharSequence name,
String value)
Sets the specified HTTP header in a thread-local variable so that the header is sent by the client call
made from the current thread.
|
static SafeCloseable |
Clients.withHttpHeaders(Function<? super HttpHeaders,? extends HttpHeaders> headerManipulator)
Sets the specified HTTP header manipulating function in a thread-local variable so that the manipulated
headers are sent by the client call made from the current thread.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
HttpRequestDuplicator
A duplicator that duplicates a
HttpRequest into one or more HttpRequests,
which publish the same elements. |
interface |
HttpResponseDuplicator
A duplicator that duplicates a
HttpResponse into one or more HttpResponses,
which publish the same elements. |
| Modifier and Type | Method and Description |
|---|---|
SafeCloseable |
RequestContext.push()
Pushes the specified context to the thread-local stack.
|
default SafeCloseable |
RequestContext.push(boolean runCallbacks)
Deprecated.
|
static SafeCloseable |
RequestContext.push(RequestContext ctx)
Deprecated.
|
static SafeCloseable |
RequestContext.push(RequestContext ctx,
boolean runCallbacks)
Deprecated.
|
default SafeCloseable |
RequestContext.pushIfAbsent()
Deprecated.
|
default SafeCloseable |
RequestContext.replace()
Replaces the current
RequestContext in the thread-local with this context without any validation. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
StreamMessageDuplicator<T>
A duplicator that duplicates a
StreamMessage into one or more StreamMessages,
which publish the same elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultStreamMessageDuplicator<T>
A default duplicator.
|
| Modifier and Type | Method and Description |
|---|---|
static SafeCloseable |
RequestContextUtil.noopSafeCloseable()
Returns the
SafeCloseable which doesn't do anything. |
static SafeCloseable |
RequestContextUtil.pop()
Removes the
RequestContext in the thread-local if exists and returns SafeCloseable which
pushes the RequestContext back to the thread-local. |
| Modifier and Type | Method and Description |
|---|---|
default SafeCloseable |
ServiceRequestContext.push()
Pushes this context to the thread-local stack.
|
Copyright © 2020 LeanCloud. All rights reserved.