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

lv.ctco.cukesrest.healthcheck.CustomHeadersResource Maven / Gradle / Ivy

There is a newer version: 0.2.28
Show newest version
package lv.ctco.cukesrest.healthcheck;

import javax.ws.rs.*;
import javax.ws.rs.core.*;

@Path(CustomHeadersResource.API)
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public class CustomHeadersResource {

    protected static final String API = "/customHeaders";

    @GET
    public Response headers() {
        return Response.ok()
            .header("Custom-Header", "2000000000000")
            .build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy