Package akka.http.javadsl.model.headers
Class RawHeader
- java.lang.Object
-
- akka.http.javadsl.model.HttpHeader
-
- akka.http.scaladsl.model.HttpHeader
-
- akka.http.javadsl.model.headers.RawHeader
-
- All Implemented Interfaces:
Renderable,ToStringRenderable
- Direct Known Subclasses:
RawHeader
@DoNotInherit public abstract class RawHeader extends HttpHeader
A header in its 'raw' name/value form, not parsed into a modelled header class. To add a custom header type, implementModeledCustomHeaderandModeledCustomHeaderFactoryrather than extendingRawHeader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
-
Constructor Summary
Constructors Constructor Description RawHeader()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static RawHeadercreate(java.lang.String name, java.lang.String value)abstract java.lang.Stringname()Returns the name of the header.abstract java.lang.Stringvalue()Returns the String representation of the value of the header.-
Methods inherited from class akka.http.scaladsl.model.HttpHeader
fastFind, is, isNot, lowercaseName, parse, unapply, unsafeToString
-
Methods inherited from class akka.http.javadsl.model.HttpHeader
parse, renderInRequests, renderInResponses
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.util.Renderable
render
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
-
-
-
Method Detail
-
name
public abstract java.lang.String name()
Description copied from class:HttpHeaderReturns the name of the header.- Specified by:
namein classHttpHeader
-
value
public abstract java.lang.String value()
Description copied from class:HttpHeaderReturns the String representation of the value of the header.- Specified by:
valuein classHttpHeader
-
create
public static RawHeader create(java.lang.String name, java.lang.String value)
-
-