MINOR: h1: provide a distinct init() function for request and response

h1m_init() used to handle response only since it was used by the H1
client code. Let's have one init per direction.
diff --git a/include/proto/h1.h b/include/proto/h1.h
index 472f4e7..365d069 100644
--- a/include/proto/h1.h
+++ b/include/proto/h1.h
@@ -300,8 +300,8 @@
 	return -stop;
 }
 
-/* initializes an H1 message */
-static inline struct h1m *h1m_init(struct h1m *h1m)
+/* initializes an H1 message for a request */
+static inline struct h1m *h1m_init_req(struct h1m *h1m)
 {
 	h1m->state = H1_MSG_RQBEFORE;
 	h1m->next = 0;
@@ -314,4 +314,18 @@
 	return h1m;
 }
 
+/* initializes an H1 message for a response */
+static inline struct h1m *h1m_init_res(struct h1m *h1m)
+{
+	h1m->state = H1_MSG_RPBEFORE;
+	h1m->next = 0;
+	h1m->status = 0;
+	h1m->flags = 0;
+	h1m->curr_len = 0;
+	h1m->body_len = 0;
+	h1m->err_pos = 0;
+	h1m->err_state = 0;
+	return h1m;
+}
+
 #endif /* _PROTO_H1_H */