gql_add_header(agooErr err, agooText headers, const char *key, const char *value) {
    headers = agoo_text_append(headers, key, -1);
    headers = agoo_text_append(headers, ": ", 2);
    headers = agoo_text_append(headers, value, -1);
    headers = agoo_text_append(headers, "\r\n", 2);

    if (NULL == headers) {
	AGOO_ERR_MEM(err, "headers");
    }
    return headers;
}
gql_add_header(agooErr err, agooText headers, const char *key, const char *value) {
    headers = agoo_text_append(headers, key, -1);
    headers = agoo_text_append(headers, ": ", 2);
    headers = agoo_text_append(headers, value, -1);
    headers = agoo_text_append(headers, "\r\n", 2);

    if (NULL == headers) {
	AGOO_ERR_MEM(err, "headers");
    }
    return headers;
}