I recommend using either HttpRequestContext constants for comparing the method and/or providing declarative methods such as $context->is_post_method().
This way we're not using 'GET' and such here which assumes normalization in the context.
Originally posted by @JasonTheAdams in #48 (comment)