make callbacks part of http request/response instead of parser.