com.artipie.nuget.http.Resource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nuget-adapter Show documentation
Show all versions of nuget-adapter Show documentation
Turns your files/objects into NuGet artifacts
/*
* The MIT License (MIT) Copyright (c) 2020-2023 artipie.com
* https://github.com/artipie/artipie/blob/master/LICENSE.txt
*/
package com.artipie.nuget.http;
import com.artipie.asto.Content;
import com.artipie.http.Headers;
import com.artipie.http.Response;
import java.util.concurrent.CompletableFuture;
/**
* Resource serving HTTP requests.
*/
public interface Resource {
/**
* Serve GET method.
*
* @param headers Request headers.
* @return Response to request.
*/
CompletableFuture get(Headers headers);
/**
* Serve PUT method.
*
* @param headers Request headers.
* @param body Request body.
* @return Response to request.
*/
CompletableFuture put(Headers headers, Content body);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy