Man page - zhttp_client(3)
Packages contas this manual
- zsock(3)
- zfile(3)
- zbeacon(3)
- zstr(3)
- zhttp_response(3)
- zdir_patch(3)
- zdir(3)
- zhttp_request(3)
- zpoller(3)
- ziflist(3)
- zarmour(3)
- zauth(3)
- zmonitor(3)
- zproxy(3)
- zchunk(3)
- zmsg(3)
- zhttp_client(3)
- czmq(7)
- zosc(3)
- zhttp_server(3)
- zhash(3)
- zlist(3)
- zargs(3)
- zhttp_server_options(3)
- zhashx(3)
- zdigest(3)
- zsys(3)
- zcertstore(3)
- zgossip(3)
- zlistx(3)
- zframe(3)
- ztimerset(3)
- ztrie(3)
- zactor(3)
- zclock(3)
- zrex(3)
- zproc(3)
- zconfig(3)
- zuuid(3)
- zcert(3)
- zloop(3)
Package: libczmq-dev
apt-get install libczmq-dev
apt-get install libczmq-dev
Manuals in package:
Documentations in package:
Manual
| ZHTTP_CLIENT(3) | CZMQ Manual | ZHTTP_CLIENT(3) |
NAME
zhttp_client - Class for provides a simple http client
SYNOPSIS
// This is a draft class, and may change without notice. It is disabled in // stable builds by default. If you use this in applications, please ask // for it to be pushed to stable state. Use --enable-drafts to enable. #ifdef CZMQ_BUILD_DRAFT_API // *** Draft method, for development use, may change without warning *** // Create a new http client CZMQ_EXPORT zhttp_client_t *
zhttp_client_new (bool verbose); // *** Draft method, for development use, may change without warning *** // Destroy an http client CZMQ_EXPORT void
zhttp_client_destroy (zhttp_client_t **self_p); // *** Draft method, for development use, may change without warning *** // Self test of this class. CZMQ_EXPORT void
zhttp_client_test (bool verbose); #endif // CZMQ_BUILD_DRAFT_API Please add '@interface' section in './../src/zhttp_client.c'.
DESCRIPTION
zhttp_client - provides a simple http client
Please add @discuss section in ./../src/zhttp_client.c.
EXAMPLE
From zhttp_client_test method.
zhttp_client_t *self = zhttp_client_new (verbose); assert (self); zhttp_request_t* request = zhttp_request_new (); zhttp_request_set_url (request, url); zhttp_request_set_method (request, "GET"); int rc = zhttp_request_send (request, self, /*timeout*/ 10000, /* user args*/ NULL, NULL); assert (rc == 0); void *user_arg; void *user_arg2; zhttp_response_t* response = zhttp_response_new (); rc = zhttp_response_recv (response, self, &user_arg, &user_arg2); assert (rc == 0); assert (streq (zhttp_response_content (response), "Hello World!")); zhttp_client_destroy (&self); zhttp_request_destroy (&request); zhttp_response_destroy (&response);
AUTHORS
The czmq manual was written by the authors in the AUTHORS file.
RESOURCES
Main web site:
Report bugs to the email <zeromq-dev@lists.zeromq.org[1]>
COPYRIGHT
Copyright (c) the Contributors as noted in the AUTHORS file. This file is part of CZMQ, the high-level C binding for 0MQ: http://czmq.zeromq.org. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. LICENSE included with the czmq distribution.
NOTES
- 1.
- zeromq-dev@lists.zeromq.org
mailto:zeromq-dev@lists.zeromq.org
| 10/28/2024 | CZMQ 4.2.1 |