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

com.yandex.ydb.core.grpc.YdbHeaders Maven / Gradle / Ivy

The newest version!
package com.yandex.ydb.core.grpc;

import io.grpc.Metadata;


/**
 * @author Sergey Polovko
 */
public class YdbHeaders {
    private YdbHeaders() {}

    static final Metadata.Key AUTH_TICKET =
        Metadata.Key.of("x-ydb-auth-ticket", Metadata.ASCII_STRING_MARSHALLER);

    public static final Metadata.Key DATABASE =
        Metadata.Key.of("x-ydb-database", Metadata.ASCII_STRING_MARSHALLER);

    static final Metadata.Key TRACE_ID =
        Metadata.Key.of("x-ydb-trace-id", Metadata.ASCII_STRING_MARSHALLER);

    public static final Metadata.Key BUILD_INFO =
        Metadata.Key.of("x-ydb-sdk-build-info", Metadata.ASCII_STRING_MARSHALLER);

    public static final Metadata.Key YDB_CLIENT_CAPABILITIES =
        Metadata.Key.of("x-ydb-client-capabilities", Metadata.ASCII_STRING_MARSHALLER);

    public static final Metadata.Key YDB_SERVER_HINTS =
        Metadata.Key.of("x-ydb-server-hints", Metadata.ASCII_STRING_MARSHALLER);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy