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

io.github.belgif.rest.problem.api.HttpResponseHeaders Maven / Gradle / Ivy

package io.github.belgif.rest.problem.api;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * Interface implemented by problems that add HTTP response headers.
 */
public interface HttpResponseHeaders {

    /**
     * The Retry-After HTTP header.
     *
     * @see Retry-After
     */
    String RETRY_AFTER = "Retry-After";

    /**
     * The WWW-Authenticate HTTP header.
     *
     * @see WWW-Authenticate
     * @see rfc6750#section-3
     */
    String WWW_AUTHENTICATE = "WWW-Authenticate";

    /**
     * Return the HTTP response headers.
     *
     * @return the HTTP response headers
     */
    @JsonIgnore
    Map getHttpResponseHeaders();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy