어떤 Azure 서비스를 추천하고 있습니까? 앱 서비스 Accept-Ranges
에서
은 기본적으로 설정되어 있습니다 :
$ curl -i http://surpriseapp.azurewebsites.net/song.mp3
HTTP/1.1 200 OK
Content-Length: 10114593
Content-Type: audio/mpeg
Accept-Ranges: bytes
Lavf52.84.0 ���D �aA�Kr���a�n��=-㏼`�1� ��i
q�D5��e�/@kq|�:�G3%�`|K�cX�����kי��q��ŎNR�ם
<< rest of binary content follows >>
$ curl -i -H "Range: bytes=0-" http://surpriseapp.azurewebsites.net/song.mp3
HTTP/1.1 206 Partial Content
Content-Length: 10114593
Content-Type: audio/mpeg
Content-Range: bytes 0-10114592/10114593
Accept-Ranges: bytes
Lavf52.84.0 ���D �aA�Kr���a�n��=-㏼`�1� ��i
q�D5��e�/@kq|�:�G3%�`|K�cX�����kי��q��ŎNR�
<< rest of binary content follows >>
$ curl -i -H "Range: bytes=200-300" http://surpriseapp.azurewebsites.net/song.mp3
HTTP/1.1 206 Partial Content
Content-Length: 101
Content-Type: audio/mpeg
Content-Range: bytes 200-300/10114593
Accept-Ranges: bytes
3��P�P�(�|�LF�����?4s�
A ���� <<<<0��Y�ms�|�晍l���2��FsP]A�x&�Ó�����;%�`L
희망 애플이 명시 적으로 요청과 Range:
헤더를 보내지 않고 206 Partial Content
을 기대하지 않습니다. 그건 바보 같을거야.