Class DownloadPackageSlice

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

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

      • DownloadPackageSlice

        public DownloadPackageSlice​(NpmProxy npm,
                                    PackagePath path)
        Ctor.
        Parameters:
        npm - NPM Proxy facade
        path - Package path helper
    • Method Detail

      • response

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