|
|
|
@ -93,6 +93,10 @@ void grpc_httpcli_context_init(grpc_httpcli_context *context); |
|
|
|
|
void grpc_httpcli_context_destroy(grpc_httpcli_context *context); |
|
|
|
|
|
|
|
|
|
/* Asynchronously perform a HTTP GET.
|
|
|
|
|
'context' specifies the http context under which to do the get |
|
|
|
|
'pollset' indicates a grpc_pollset that is interested in the result |
|
|
|
|
of the get - work on this pollset may be used to progress the get |
|
|
|
|
operation |
|
|
|
|
'request' contains request parameters - these are caller owned and can be |
|
|
|
|
destroyed once the call returns |
|
|
|
|
'deadline' contains a deadline for the request (or gpr_inf_future) |
|
|
|
@ -106,7 +110,19 @@ void grpc_httpcli_get(grpc_httpcli_context *context, grpc_pollset *pollset, |
|
|
|
|
grpc_httpcli_response_cb on_response, void *user_data); |
|
|
|
|
|
|
|
|
|
/* Asynchronously perform a HTTP POST.
|
|
|
|
|
When there is no body, pass in NULL as body_bytes. |
|
|
|
|
'context' specifies the http context under which to do the post |
|
|
|
|
'pollset' indicates a grpc_pollset that is interested in the result |
|
|
|
|
of the post - work on this pollset may be used to progress the post |
|
|
|
|
operation |
|
|
|
|
'request' contains request parameters - these are caller owned and can be |
|
|
|
|
destroyed once the call returns |
|
|
|
|
'body_bytes' and 'body_size' specify the payload for the post. |
|
|
|
|
When there is no body, pass in NULL as body_bytes. |
|
|
|
|
'deadline' contains a deadline for the request (or gpr_inf_future) |
|
|
|
|
'em' points to a caller owned event manager that must be alive for the |
|
|
|
|
lifetime of the request |
|
|
|
|
'on_response' is a callback to report results to (and 'user_data' is a user |
|
|
|
|
supplied pointer to pass to said call) |
|
|
|
|
Does not support ?var1=val1&var2=val2 in the path. */ |
|
|
|
|
void grpc_httpcli_post(grpc_httpcli_context *context, grpc_pollset *pollset, |
|
|
|
|
const grpc_httpcli_request *request, |
|
|
|
|