APNSHttpClient

class APNSHttpClient(val client: OkClient, prep: RequestPreparer, isSandbox: Boolean) extends APNSHttpClientBase[Future]

APNs client, using the HTTP/2 notification API.

Uses OkHttp with Jetty's "alpn-boot" in the bootclasspath for HTTP/2 support; please check the build definition of this project for details.

See also:
Companion:
object
class APNSHttpClientBase[Future]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def push(id: APNSToken, message: APNSRequest): Future[Either[APNSError, APNSIdentifier]]
Definition Classes
override def pushAll(ids: Seq[APNSToken], message: APNSRequest): Future[Seq[Either[APNSError, APNSIdentifier]]]
Definition Classes
def pushOne(id: APNSToken, message: APNSRequest): Future[APNSHttpResult]

Inherited methods

def installHeaders(request: Builder): Builder
Inherited from:
APNSHttpClientBase
def parseResponse(response: OkHttpResponse): Either[APNSError, APNSIdentifier]
Inherited from:
APNSHttpClientBase
def send(id: APNSToken, message: APNSRequest): Future[OkHttpResponse]
Inherited from:
APNSHttpClientBase
def url(token: APNSToken): FullUrl
Inherited from:
APNSHttpClientBase
def withHeaders(meta: APNSMeta)(request: Builder): Builder
Inherited from:
APNSHttpClientBase

Concrete fields

val client: OkClient

Inherited fields

val host: FullUrl
Inherited from:
APNSHttpClientBase
val jsonMediaType: MediaType
Inherited from:
APNSHttpClientBase

Implicits

Implicits

implicit val ec: ExecutionContext