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

com.yahoo.vespa.http.server.Headers Maven / Gradle / Ivy

There is a newer version: 8.441.21
Show newest version
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.http.server;

/**
 * HTTP headers.
 *
 * @author Steinar Knutsen
 */
public final class Headers {

    private Headers() {
    }

    public static final String CLIENT_VERSION = "Vespa-Client-Version";

    public static final String TIMEOUT = "X-Yahoo-Feed-Timeout";
    public static final String DRAIN = "X-Yahoo-Feed-Drain";
    public static final String ROUTE = "X-Yahoo-Feed-Route";
    public static final String VERSION = "X-Yahoo-Feed-Protocol-Version";
    public static final String SESSION_ID = "X-Yahoo-Feed-Session-Id";
    public static final String DENY_IF_BUSY = "X-Yahoo-Feed-Deny-If-Busy";
    public static final String DATA_FORMAT = "X-Yahoo-Feed-Data-Format";
    // This value can be used to route the request to a specific server when using
    // several servers. It is a random value that is the same for the whole session.
    public static final String SHARDING_KEY = "X-Yahoo-Feed-Sharding-Key";
    public static final String TRACE_LEVEL = "X-Yahoo-Feed-Trace-Level";

    public static final int HTTP_NOT_ACCEPTABLE = 406;

    // For version 3 of the API
    public static final String CLIENT_ID = "X-Yahoo-Client-Id";
    public static final String OUTSTANDING_REQUESTS = "X-Yahoo-Outstanding-Requests";
    public static final String HOSTNAME = "X-Yahoo-Hostname";
    public static final String SILENTUPGRADE = "X-Yahoo-Silent-Upgrade";

    // A response header present and set to "true" onlynif any fields of a document operation were ignored
    // because they were not declared in the target document type.
    public static final String IGNORED_FIELDS = "X-Vespa-Ignored-Fields";

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy