public class HeaderMagnet$ extends java.lang.Object implements LowPriorityHeaderMagnetImplicits
Modifier and Type | Field and Description |
---|---|
static HeaderMagnet$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
HeaderMagnet$() |
Modifier and Type | Method and Description |
---|---|
<T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> |
fromClassForModeledCustomHeader(java.lang.Class<T> clazz,
ModeledCustomHeaderCompanion<T> companion) |
<T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> |
fromClassTagForModeledCustomHeader(scala.reflect.ClassTag<T> tag,
ModeledCustomHeaderCompanion<T> companion) |
<T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> |
fromCompanionForModeledCustomHeader(ModeledCustomHeaderCompanion<T> companion,
scala.reflect.ClassTag<T> tag)
If possible we want to apply the special logic for
ModeledCustomHeader to extract custom headers by type,
otherwise the default fromCompanion is good enough (for headers that the parser emits in the right type already). |
<T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> |
fromUnitForModeledCustomHeader(scala.runtime.BoxedUnit u,
scala.reflect.ClassTag<T> tag,
ModeledCustomHeaderCompanion<T> companion)
Deprecated.
Pass the companion object to headerValueByType as a parameter instead, e.g. `headerValueByType(Origin)` instead of `headerValueByType[Origin](())`. Since Akka HTTP 10.2.0.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromClassNormalHeader, fromClassNormalJavaHeader, fromClassTagNormalHeader, fromCompanionNormalHeader, fromUnitNormalHeader
public static final HeaderMagnet$ MODULE$
public <T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> HeaderMagnet<T> fromCompanionForModeledCustomHeader(ModeledCustomHeaderCompanion<T> companion, scala.reflect.ClassTag<T> tag)
ModeledCustomHeader
to extract custom headers by type,
otherwise the default fromCompanion
is good enough (for headers that the parser emits in the right type already).companion
- (undocumented)tag
- (undocumented)public <T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> HeaderMagnet<T> fromUnitForModeledCustomHeader(scala.runtime.BoxedUnit u, scala.reflect.ClassTag<T> tag, ModeledCustomHeaderCompanion<T> companion)
public <T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> HeaderMagnet<T> fromClassForModeledCustomHeader(java.lang.Class<T> clazz, ModeledCustomHeaderCompanion<T> companion)
public <T extends ModeledCustomHeader<T>,H extends ModeledCustomHeaderCompanion<T>> HeaderMagnet<T> fromClassTagForModeledCustomHeader(scala.reflect.ClassTag<T> tag, ModeledCustomHeaderCompanion<T> companion)