org.apache.pekko.http.scaladsl.server.directives
CodingDirectives
Companion trait CodingDirectives
object CodingDirectives extends CodingDirectives
- Source
- CodingDirectives.scala
- Grouped
- Alphabetic
- By Inheritance
- CodingDirectives
- CodingDirectives
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def DefaultCoders: Seq[Coder]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
decodeRequest: Directive0
Decompresses the incoming request if it is
gzipordeflatecompressed.Decompresses the incoming request if it is
gzipordeflatecompressed. Uncompressed requests are passed through untouched. If the request encoded with another encoding the request is rejected with anUnsupportedRequestEncodingRejection.- Definition Classes
- CodingDirectives
-
def
decodeRequestWith(decoders: Decoder*): Directive0
Decodes the incoming request if it is encoded with one of the given encoders.
Decodes the incoming request if it is encoded with one of the given encoders. If the request encoding doesn't match one of the given encoders the request is rejected with an
UnsupportedRequestEncodingRejection. If no decoders are given the default encoders (Gzip,Deflate,NoCoding) are used.- Definition Classes
- CodingDirectives
-
def
decodeRequestWith(decoder: Decoder): Directive0
Decodes the incoming request using the given Decoder.
Decodes the incoming request using the given Decoder. If the request encoding doesn't match the request is rejected with an
UnsupportedRequestEncodingRejection.- Definition Classes
- CodingDirectives
-
def
encodeResponse: Directive0
Encodes the response with the encoding that is requested by the client via the
Accept- Encodingheader.Encodes the response with the encoding that is requested by the client via the
Accept- Encodingheader. The response encoding is determined by the rules specified in http://tools.ietf.org/html/rfc7231#section-5.3.4.If the
Accept-Encodingheader is missing or empty or specifies an encoding other than identity, gzip or deflate then no encoding is used.- Definition Classes
- CodingDirectives
-
def
encodeResponseWith(first: Encoder, more: Encoder*): Directive0
Encodes the response with the encoding that is requested by the client via the
Accept- Encodingheader.Encodes the response with the encoding that is requested by the client via the
Accept- Encodingheader. The response encoding is determined by the rules specified in http://tools.ietf.org/html/rfc7231#section-5.3.4.If the
Accept-Encodingheader is missing then the response is encoded using thefirstencoder.If the
Accept-Encodingheader is empty andNoCodingis part of the encoders then no response encoding is used. Otherwise the request is rejected.- Definition Classes
- CodingDirectives
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
requestEncodedWith(encoding: HttpEncoding): Directive0
Rejects the request with an UnsupportedRequestEncodingRejection if its encoding doesn't match the given one.
Rejects the request with an UnsupportedRequestEncodingRejection if its encoding doesn't match the given one.
- Definition Classes
- CodingDirectives
-
def
responseEncodingAccepted(encoding: HttpEncoding): Directive0
Rejects the request with an UnacceptedResponseEncodingRejection if the given response encoding is not accepted by the client.
Rejects the request with an UnacceptedResponseEncodingRejection if the given response encoding is not accepted by the client.
- Definition Classes
- CodingDirectives
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def theseOrDefault[T >: Coder](these: Seq[T]): Seq[T]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withPrecompressedMediaTypeSupport: Directive0
Inspects the response entity and adds a
Content-Encoding: gzipresponse header if the entity's media-type is precompressed with gzip and noContent-Encodingheader is present yet.Inspects the response entity and adds a
Content-Encoding: gzipresponse header if the entity's media-type is precompressed with gzip and noContent-Encodingheader is present yet.- Definition Classes
- CodingDirectives