All Downloads are FREE. Search and download functionalities are using the official Maven repository.

akka.grpc.scaladsl.Metadata.scala Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (C) 2009-2019 Lightbend Inc. 
 */

package akka.grpc.scaladsl

import akka.annotation.DoNotInherit
import akka.util.ByteString

/**
 * Immutable representation of the metadata in a call
 *
 * Not for user extension
 */
@DoNotInherit trait Metadata {
  /**
   * @return The text header value for `key` if one exists, if the same key has multiple values the last occurrence
   *         that is a text key is used.
   */
  def getText(key: String): Option[String]
  /**
   * @return The binary header value for `key` if one exists, if the same key has multiple values the last occurrence
   *         that is a text key is used.
   */
  def getBinary(key: String): Option[ByteString]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy