Commit 8d8b7741 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

lib/curl/Request: add API docs

parent fd9114e7
/* /*
* Copyright 2008-2018 Max Kellermann <max.kellermann@gmail.com> * Copyright 2008-2021 Max Kellermann <max.kellermann@gmail.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -39,6 +39,12 @@ struct StringView; ...@@ -39,6 +39,12 @@ struct StringView;
class CurlGlobal; class CurlGlobal;
class CurlResponseHandler; class CurlResponseHandler;
/**
* A non-blocking HTTP request integrated via #CurlGlobal into the
* #EventLoop.
*
* To start sending the request, call Start().
*/
class CurlRequest final { class CurlRequest final {
CurlGlobal &global; CurlGlobal &global;
...@@ -136,7 +142,7 @@ public: ...@@ -136,7 +142,7 @@ public:
easy.SetPost(value); easy.SetPost(value);
} }
void SetRequestBody(const void *data, size_t size) { void SetRequestBody(const void *data, std::size_t size) {
easy.SetRequestBody(data, size); easy.SetRequestBody(data, size);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment