Interface Resource

  • All Known Implementing Classes:
    PackageMetadata, Root

    public interface Resource
    Resource serving HTTP requests.
    Since:
    0.1
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.artipie.http.Response get()
      Serve GET method.
      com.artipie.http.Response put​(org.reactivestreams.Publisher<ByteBuffer> body)
      Serve PUT method.
    • Method Detail

      • get

        com.artipie.http.Response get()
        Serve GET method.
        Returns:
        Response to request.
      • put

        com.artipie.http.Response put​(org.reactivestreams.Publisher<ByteBuffer> body)
        Serve PUT method.
        Parameters:
        body - Request body.
        Returns:
        Response to request.