mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 22:36:20 +00:00
parent
bbf0ec52de
commit
8686ffe761
@ -142,4 +142,10 @@ public class NettyHttpRequest extends AbstractRestRequest implements HttpRequest
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterable<Map.Entry<String, String>> headers() {
|
||||
return request.headers().entries();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -84,4 +84,6 @@ public interface RestRequest extends ToXContent.Params {
|
||||
ByteSizeValue paramAsSize(String key, ByteSizeValue defaultValue);
|
||||
|
||||
Map<String, String> params();
|
||||
|
||||
Iterable<Map.Entry<String, String>> headers();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user