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.http.Headers;
import com.artipie.http.Response;
import java.nio.ByteBuffer;
import org.reactivestreams.Publisher;
/**
* Resource serving HTTP requests.
*
* @since 0.1
*/
public interface Resource {
/**
* Serve GET method.
*
* @param headers Request headers.
* @return Response to request.
*/
Response get(Headers headers);
/**
* Serve PUT method.
*
* @param headers Request headers.
* @param body Request body.
* @return Response to request.
*/
Response put(Headers headers, Publisher body);
}