From b70940181444851f496b2660ff2b68212ca64872 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Dec 2021 11:54:02 +0100 Subject: [PATCH] lib/curl/Request: add API docs --- src/lib/curl/Request.hxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/curl/Request.hxx b/src/lib/curl/Request.hxx index e08e58e8c..d18e06c4f 100644 --- a/src/lib/curl/Request.hxx +++ b/src/lib/curl/Request.hxx @@ -1,5 +1,5 @@ /* - * Copyright 2008-2018 Max Kellermann + * Copyright 2008-2021 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -39,6 +39,12 @@ struct StringView; class CurlGlobal; class CurlResponseHandler; +/** + * A non-blocking HTTP request integrated via #CurlGlobal into the + * #EventLoop. + * + * To start sending the request, call Start(). + */ class CurlRequest final { CurlGlobal &global; @@ -136,7 +142,7 @@ public: easy.SetPost(value); } - void SetRequestBody(const void *data, size_t size) { + void SetRequestBody(const void *data, std::size_t size) { easy.SetRequestBody(data, size); }