Class DownloadAssetSlice

  • All Implemented Interfaces:
    com.artipie.http.Slice

    public final class DownloadAssetSlice
    extends Object
    implements com.artipie.http.Slice
    HTTP slice for download asset requests.
    Since:
    0.1
    • Constructor Detail

      • DownloadAssetSlice

        public DownloadAssetSlice​(NpmProxy npm,
                                  AssetPath path)
        Ctor.
        Parameters:
        npm - NPM Proxy facade
        path - Asset path helper
    • Method Detail

      • response

        public com.artipie.http.Response response​(String line,
                                                  Iterable<Map.Entry<String,​String>> rqheaders,
                                                  org.reactivestreams.Publisher<ByteBuffer> body)
        Specified by:
        response in interface com.artipie.http.Slice