Example usage for io.netty.handler.codec.http HttpHeaderNames RANGE

List of usage examples for io.netty.handler.codec.http HttpHeaderNames RANGE

Introduction

In this page you can find the example usage for io.netty.handler.codec.http HttpHeaderNames RANGE.

Prototype

AsciiString RANGE

To view the source code for io.netty.handler.codec.http HttpHeaderNames RANGE.

Click Source Link

Document

"range"

Usage

From source file:io.crate.protocols.http.HttpBlobHandler.java

License:Apache License

private void get(HttpRequest request, String index, final String digest) throws IOException {
    String range = request.headers().get(HttpHeaderNames.RANGE);
    if (range != null) {
        partialContentResponse(range, request, index, digest);
    } else {//from  w  w  w.jav  a2s  .  com
        fullContentResponse(request, index, digest);
    }
}