Class NpmProxySlice

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

    public final class NpmProxySlice
    extends Object
    implements com.artipie.http.Slice
    Main HTTP slice NPM Proxy adapter.
    Since:
    0.1
    • Constructor Detail

      • NpmProxySlice

        public NpmProxySlice​(String path,
                             NpmProxy npm)
        Ctor.
        Parameters:
        path - NPM proxy repo path ("" if NPM proxy should handle ROOT context path)
        npm - NPM Proxy facade
    • 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