Skip to content

Implement a header wrapper #44

Open

Description

Implement the following namespace-level functions to act as accessor shortcuts to make deailing with messages easier:

template <class Tag>
typename basic_response<Tag>::string_type const
header(basic_response<Tag> & message, 
    typename basic_response<Tag>::string_type const & header_name,
    int offset = 0); // throws

template <class Tag>
boost::optional<typename basic_response<Tag>::string_type> const
header_nothrow(basic_response<Tag> & message,
    typename basic_response<Tag>::string_type const & header_name,
    int offset = 0); // no throw

This should be trivial to implement and should be easy to document as well.

Activity

  1. ghost
    self-assigned this
    on Apr 28, 2011
  2. ghost added a commit that references this issue on Aug 13, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions