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

scalapb.zio_grpc.SafeMetadata.scala Maven / Gradle / Ivy

The newest version!
package scalapb.zio_grpc

import zio.ZIO
import zio.UIO
import scalajs.js.Dictionary

final class SafeMetadata private (
    private[zio_grpc] val metadata: Dictionary[String]
) {}

object SafeMetadata {
  def make: UIO[SafeMetadata] = ZIO.succeed(new SafeMetadata(Dictionary.empty))

  def make(pairs: (String, String)*): UIO[SafeMetadata] =
    ZIO.succeed(new SafeMetadata(Dictionary(pairs: _*)))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy