WordPress.org

WordPRess GSoC Trac

Opened 10 months ago

Closed 7 months ago

Last modified 7 months 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:
Cc:

Description

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 rmccue7 months 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 bpetty7 months ago

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

Note: See TracTickets for help on using tickets.