rest - HTTP Redirect to a Partial Response (206) -


i'm building api, , trying make restful possible.

to end i've build search 'controller', allows query searchable params, , posting redirect (302) controller/resource result of search.

this other controller supports "range:" header allow client request how , in list of items wants.

reading http spec, says server should respond 206 partial content if request contains range header. valid http send range header along post request?.

it bad me respond first 10 items, 206 if range header wasn't supplied?. 206 give client knowledge can ask more items if needs it.

a literal reading of http://www.w3.org/protocols/rfc2616/rfc2616-sec10.html & http://svn.tools.ietf.org/svn/wg/httpbis/specs/rfc7233.html indicates range applicable requests.

i wonder why don't use request search, i'm guessing idempotent more appropriate.

also note registered range unit bytes, wouldn't useful (see http://www.iana.org/assignments/http-parameters/http-parameters.xhtml#range-units ) can of course have own custom local units...but...

what i'm getting @ if leaving normal range spec add own unit, can range applies post in namespace.

personally find kind of weird limit response code specific request type...shouldn't server able tell client returning range requested whole thing?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -