globus_xio  6.0
globus_xio_http.h
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2006 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 #if !defined GLOBUS_XIO_DRIVER_HTTP_H
18 #define GLOBUS_XIO_DRIVER_HTTP_H 1
19 
24 #include "globus_xio.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
128 typedef struct
129 {
131  char * name;
133  char * value;
134 }
136 
141 typedef enum
142 {
181  /* const char * header_name,
182  const char * header_value */
200  /* int status */
218  /* const char * reason */
238  /* globus_xio_http_version_t version */
255  GLOBUS_XIO_HTTP_HANDLE_SET_REQUEST_HEADER
256 }
258 
263 typedef enum
264 {
283  /* const char * method */
301  /* globus_xio_http_version_t version */
339  /* const char * header_name,
340  * const char * header_value */
376  /* char ** method,
377  char ** uri,
378  globus_xio_http_version_t * http_version,
379  globus_hashtable_t * headers */
406  /* int * status_code,
407  char ** reason_phrase,
408  globus_xio_http_version_t * http_version,
409  globus_hashtable_t * headers */
411 
412 }
414 
419 typedef enum
420 {
443 }
445 
452 typedef enum
453 {
454  GLOBUS_XIO_HTTP_VERSION_UNSET,
463 }
465 
466 #ifdef __cplusplus
467 }
468 #endif
469 
470 #endif
GLOBUS_XIO_HTTP_HANDLE_SET_RESPONSE_REASON_PHRASE
@ GLOBUS_XIO_HTTP_HANDLE_SET_RESPONSE_REASON_PHRASE
Definition: globus_xio_http.h:148
GLOBUS_XIO_HTTP_ATTR_SET_REQUEST_METHOD
@ GLOBUS_XIO_HTTP_ATTR_SET_REQUEST_METHOD
Definition: globus_xio_http.h:167
GLOBUS_XIO_HTTP_GET_REQUEST
@ GLOBUS_XIO_HTTP_GET_REQUEST
Definition: globus_xio_http.h:179
GLOBUS_XIO_HTTP_GET_RESPONSE
@ GLOBUS_XIO_HTTP_GET_RESPONSE
Definition: globus_xio_http.h:182
GLOBUS_XIO_HTTP_HANDLE_SET_RESPONSE_HEADER
@ GLOBUS_XIO_HTTP_HANDLE_SET_RESPONSE_HEADER
Definition: globus_xio_http.h:142
globus_xio_http_errors_t
globus_xio_http_errors_t
Definition: globus_xio_http.h:191
GLOBUS_XIO_HTTP_VERSION_1_1
@ GLOBUS_XIO_HTTP_VERSION_1_1
Definition: globus_xio_http.h:234
globus_xio_http_header_t
HTTP Header.
Definition: globus_xio_http.h:125
GLOBUS_XIO_HTTP_HANDLE_SET_RESPONSE_HTTP_VERSION
@ GLOBUS_XIO_HTTP_HANDLE_SET_RESPONSE_HTTP_VERSION
Definition: globus_xio_http.h:151
globus_xio_http_handle_cmd_t
globus_xio_http_handle_cmd_t
Definition: globus_xio_http.h:138
GLOBUS_XIO_HTTP_ATTR_SET_REQUEST_HEADER
@ GLOBUS_XIO_HTTP_ATTR_SET_REQUEST_HEADER
Definition: globus_xio_http.h:173
globus_xio_http_version_t
globus_xio_http_version_t
Definition: globus_xio_http.h:224
GLOBUS_XIO_HTTP_VERSION_1_0
@ GLOBUS_XIO_HTTP_VERSION_1_0
Definition: globus_xio_http.h:230
GLOBUS_XIO_HTTP_ERROR_EOF
@ GLOBUS_XIO_HTTP_ERROR_EOF
Definition: globus_xio_http.h:210
GLOBUS_XIO_HTTP_ERROR_PARSE
@ GLOBUS_XIO_HTTP_ERROR_PARSE
Definition: globus_xio_http.h:202
GLOBUS_XIO_HTTP_ATTR_SET_REQUEST_HTTP_VERSION
@ GLOBUS_XIO_HTTP_ATTR_SET_REQUEST_HTTP_VERSION
Definition: globus_xio_http.h:170
GLOBUS_XIO_HTTP_ERROR_PERSISTENT_CONNECTION_DROPPED
@ GLOBUS_XIO_HTTP_ERROR_PERSISTENT_CONNECTION_DROPPED
Definition: globus_xio_http.h:214
GLOBUS_XIO_HTTP_HANDLE_SET_END_OF_ENTITY
@ GLOBUS_XIO_HTTP_HANDLE_SET_END_OF_ENTITY
Definition: globus_xio_http.h:154
globus_xio_http_attr_cmd_t
globus_xio_http_attr_cmd_t
Definition: globus_xio_http.h:163
GLOBUS_XIO_HTTP_ERROR_INVALID_HEADER
@ GLOBUS_XIO_HTTP_ERROR_INVALID_HEADER
Definition: globus_xio_http.h:198
GLOBUS_XIO_HTTP_ERROR_NO_ENTITY
@ GLOBUS_XIO_HTTP_ERROR_NO_ENTITY
Definition: globus_xio_http.h:206
GLOBUS_XIO_HTTP_HANDLE_SET_RESPONSE_STATUS_CODE
@ GLOBUS_XIO_HTTP_HANDLE_SET_RESPONSE_STATUS_CODE
Definition: globus_xio_http.h:145
GLOBUS_XIO_HTTP_ATTR_DELAY_WRITE_HEADER
@ GLOBUS_XIO_HTTP_ATTR_DELAY_WRITE_HEADER
Definition: globus_xio_http.h:176