17 #ifndef HTTP_TEST_COMMON_H
18 #define HTTP_TEST_COMMON_H
20 #include "globus_xio.h"
23 typedef void (*globus_xio_http_request_ready_callback_t)(
29 globus_hashtable_t headers);
36 int outstanding_operation;
38 globus_xio_server_t server;
39 globus_xio_handle_t handle;
47 char * transfer_encoding;
50 globus_xio_driver_t http_driver;
51 globus_xio_driver_t tcp_driver;
53 globus_hashtable_t uri_handlers;
59 http_test_server_init(
60 http_test_server_t * server,
61 globus_xio_driver_t tcp_driver,
62 globus_xio_driver_t http_driver,
63 globus_xio_stack_t stack);
66 http_test_server_register_handler(
67 http_test_server_t * server,
69 globus_xio_http_request_ready_callback_t
75 http_test_server_t * server);
78 http_test_server_shutdown(
79 http_test_server_t * server);
82 http_test_server_destroy(
83 http_test_server_t * server);
86 http_test_server_respond(
87 http_test_server_t * server,
91 size_t header_array_len);
94 http_test_server_close_handle(
95 http_test_server_t * test_server);
98 http_test_client_request(
99 globus_xio_handle_t * new_handle,
100 globus_xio_driver_t tcp_driver,
101 globus_xio_driver_t http_driver,
102 globus_xio_stack_t stack,
103 const char * contact,
108 size_t header_array_length);
111 http_test_initialize(
112 globus_xio_driver_t * tcp_driver,
113 globus_xio_driver_t * http_driver,
114 globus_xio_stack_t * stack);
int globus_bool_t
Boolean type.
Definition: globus_types.h:93
Globus XIO HTTP Driver Header.
Mutex.
Definition: globus_thread.h:107
Condition variable.
Definition: globus_thread.h:124
size_t globus_size_t
Standard size of memory objectThe globus_size_t is the size of a memory object. It is identical to si...
Definition: globus_types.h:48
uint32_t globus_result_t
Definition: globus_types.h:99
globus_xio_http_version_t
Definition: globus_xio_http.h:231