public final class TrimPathSlice extends Object implements Slice
For example GET http://www.w3.org/pub/WWW/TheProject.html HTTP/1.1
would be GET http://www.w3.org/WWW/TheProject.html HTTP/1.1.
The full path will be available as the value of X-FullPath header.
Slice.Wrap| Constructor and Description |
|---|
TrimPathSlice(Slice slice,
Pattern ptn)
Trim URI path by pattern.
|
TrimPathSlice(Slice slice,
String path)
Trim URI path by first hit of path param.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
response(String line,
Iterable<Map.Entry<String,String>> headers,
org.reactivestreams.Publisher<ByteBuffer> body)
Respond to a http request.
|
public TrimPathSlice(Slice slice, String path)
slice - Origin slicepath - Path to trimCopyright © 2012–2020 jcabi.com. All rights reserved.