I would like to add support for HTTP header if-modified-since as a parameter source for services callbacks.

Comments

pdrake’s picture

StatusFileSize
new1.06 KB

The attached patch adds initial support for if-modified-since, which may be assigned in a services definition as shown below:

  array(
    'name' => 'modified',
    'optional' => TRUE,
    'type' => 'string',
    'description' => 'Return only objects updated since the supplied if-modified-since header date/time.',
    'default value' => NULL,
    'source' => array('headers' => 'IF_MODIFIED_SINCE'),
  ),
kylebrowning’s picture

Category: feature » task

Im good with this but patch doesn't apply, can we get a re-roll and see a 7.x version?

pdrake’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

Here's an updated patch for 6.x-3.x.

pdrake’s picture

StatusFileSize
new1.1 KB

Here's a patch for 7.x-3.x.

kylebrowning’s picture

Status: Needs review » Reviewed & tested by the community

Thanks!

pdrake’s picture

StatusFileSize
new1.06 KB

Attached is a patch for 6.x-3.1 for anyone who may be using that release since the above 6.x-3.x patch will not apply cleaning.

marcingy’s picture

Version: 6.x-3.x-dev » 7.x-3.1

Moving to 7.x as it will be committed there first.

marcingy’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.