WordPRess GSoC Trac

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#293 closed enhancement (fixed)

Avoid sending headers directly in methods

Reported by: rmccue Owned by: rmccue
Milestone: 2013 Final (1.0) Priority: minor
Component: JSON REST API Keywords:


To enable embedding the API inside other code, we should avoid sending headers directly in the methods. Instead, we should use wrappers that can be overriden by users.

Change History (2)

comment:1 @rmccue2 years ago

  • Owner set to rmccue
  • Resolution set to fixed
  • Status changed from new to closed

In 2287:

Always send headers via the server handler

Fixes #293

comment:2 @bpetty2 years ago

This will be very helpful when we get around to implementing PHPUnit tests.

Note: See TracTickets for help on using tickets.