Class NpmSlice

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

    public final class NpmSlice
    extends Object
    implements com.artipie.http.Slice
    NpmSlice is a http layer in npm adapter.
    Since:
    0.3
    • Constructor Detail

      • NpmSlice

        public NpmSlice​(com.artipie.asto.Storage storage)
        Ctor.
        Parameters:
        storage - Storage for package
      • NpmSlice

        public NpmSlice​(Npm npm,
                        com.artipie.asto.Storage storage)
        Ctor.
        Parameters:
        npm - Npm front
        storage - Storage for package
    • 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