Skip to content

Example project for http Range and Content-Range header handling through filters in Spring.

Notifications You must be signed in to change notification settings

blzsaa/contentRange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example project for http Range and Content-Range header handling through filters in Spring.

usage:

  • get all without any range:
    curl http://localhost:8080/lc/all
    
    [{"lc":"a"},{"lc":"b"},{"lc":"c"}]
    
    note: Content-Range header is not present in response
  • get middle part:
    curl http://localhost:8080/lc/all -i -H "Range: bytes=12-21"
    
    HTTP/1.1 200
    Content-Range: bytes 12-21/34
    Content-Length: 10
    Date: Sat, 25 Jan 2020 10:57:18 GMT
    
    {"lc":"b"}
    
  • get everything from 12th bytes:
    curl http://localhost:8080/lc/all -i -H "Range: bytes=12-"
    
    HTTP/1.1 200
    Content-Range: bytes 12-33/34
    Content-Length: 22
    Date: Sat, 25 Jan 2020 10:58:30 GMT
    
    {"lc":"b"},{"lc":"c"}]
    

About

Example project for http Range and Content-Range header handling through filters in Spring.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages