mikecao / flightphp.com

Flight website
https://flightphp.com
78 stars 22 forks source link

Range & Head #11

Closed swschilke closed 5 months ago

swschilke commented 5 years ago

How does a flightphp REST "endpoint" reacts if a Head or Range http request is used against the endpoint? Or a trace / connect etc.?

mikecao commented 5 years ago

As long as the request method gets passed to Flight, it can handle it.

swschilke commented 5 years ago

Well, range requests from a resource, e.g. the bytes 200-2000. Can it handle this? Like www.your.domain/files/some.file (<-- the rest call) with range 200-2000 in the request. How does flightphp react/handle this?

mikecao commented 5 years ago

It will just pass the request to your handler. Your handler will need to respond appropriately. There is no built in file handling in Flight.