@Headers("Cache-Control: max-age=640000")
Author: Nate Brunette (n@tebru.net)
Inheritance: implements Tebru\Dynamo\Annotation\DynamoAnnotation
 public function testMultipleHeader()
 {
     $annotation = new Headers(['value' => ['Foo: bar', 'Baz: boing']]);
     $this->assertEquals(['Foo' => 'bar', 'Baz' => 'boing'], $annotation->getHeaders());
 }
Esempio n. 2
0
 /**
  * @param Method $method
  * @param Headers $annotation
  * @return null
  */
 public function handle(Method $method, $annotation)
 {
     $method->addHeaders($annotation->getHeaders());
 }