Package com.artipie.npm.http
Class NpmSlice
- java.lang.Object
-
- com.artipie.npm.http.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 Summary
Constructors Constructor Description NpmSlice(URL base, com.artipie.asto.Storage storage)
Ctor with existing front and default parameters for free access.NpmSlice(URL base, Npm npm, com.artipie.asto.Storage storage)
Ctor with existing front and default parameters for free access.NpmSlice(URL base, Npm npm, com.artipie.asto.Storage storage, com.artipie.http.auth.Permissions perms, com.artipie.http.auth.Identities users)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.artipie.http.Response
response(String line, Iterable<Map.Entry<String,String>> headers, org.reactivestreams.Publisher<ByteBuffer> body)
-
-
-
Constructor Detail
-
NpmSlice
public NpmSlice(URL base, com.artipie.asto.Storage storage)
Ctor with existing front and default parameters for free access.- Parameters:
base
- Base URL.storage
- Storage for package
-
NpmSlice
public NpmSlice(URL base, Npm npm, com.artipie.asto.Storage storage)
Ctor with existing front and default parameters for free access.- Parameters:
base
- Base URL.npm
- Npm existing frontstorage
- Storage for package
-
-