Globus Toolkit  6.0.1610491877
test-xio-server.h
1 /*
2  * Copyright 1999-2016 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include <stdbool.h>
18 #include <stdio.h>
19 #include <curl/curl.h>
20 
21 #include "globus_dsi_rest.h"
22 #include "globus_xio.h"
23 #include "globus_xio_http.h"
24 
25 typedef globus_result_t (*globus_dsi_rest_route_t)(
26  void *route_arg,
27  void *request_body,
28  size_t request_body_length,
29  int *response_code,
30  void *response_body,
31  size_t *response_body_length,
33 
35 globus_dsi_rest_test_server_init(
36  char **contact);
37 
38 void
39 globus_dsi_rest_test_server_destroy(void);
40 
42 globus_dsi_rest_test_server_add_route(
43  const char *uri,
44  globus_dsi_rest_route_t route_func,
45  void *route_arg);
globus_xio_http.h
Globus XIO HTTP Driver Header.
globus_dsi_rest_key_array_s
Key-Value Pair Array.
Definition: globus_dsi_rest.h:92
globus_dsi_rest.h
globus_result_t
uint32_t globus_result_t
Definition: globus_types.h:99