MINOR: http: add a small helper to compute the amount of body bytes present

http_body_bytes() returns the number of bytes of the current message body
present in the buffer. It is compatible with being called before and after
the headers are forwarded.

This is done to centralize further ->sov changes.
diff --git a/src/backend.c b/src/backend.c
index 17e4b7f..e40b560 100644
--- a/src/backend.c
+++ b/src/backend.c
@@ -298,14 +298,11 @@
 	struct http_msg *msg  = &txn->req;
 	struct proxy    *px   = s->be;
 	unsigned int     plen = px->url_param_len;
-	unsigned long    len  = msg->body_len;
+	unsigned long    len  = http_body_bytes(msg);
 	const char      *params = b_ptr(req->buf, (int)(msg->sov + msg->sol - req->buf->o));
 	const char      *p    = params;
 	const char      *start, *end;
 
-	if (len > buffer_len(req->buf) - msg->sov - msg->sol)
-		len = buffer_len(req->buf) - msg->sov - msg->sol;
-
 	if (len == 0)
 		return NULL;