Submit
Path:
~
/
/
opt
/
alt
/
php52
/
usr
/
include
/
php
/
ext
/
http
/
File Content:
php_http_cookie_api.h
/* +--------------------------------------------------------------------+ | PECL :: http | +--------------------------------------------------------------------+ | Redistribution and use in source and binary forms, with or without | | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ | Copyright (c) 2004-2010, Michael Wallner <mike@php.net> | +--------------------------------------------------------------------+ */ /* $Id: php_http_cookie_api.h 292841 2009-12-31 08:48:57Z mike $ */ #ifndef PHP_HTTP_COOKIE_API_H #define PHP_HTTP_COOKIE_API_H #define HTTP_COOKIE_SECURE 0x10L #define HTTP_COOKIE_HTTPONLY 0x20L #define HTTP_COOKIE_PARSE_RAW 0x01L extern PHP_MINIT_FUNCTION(http_cookie); /* generally a netscape cookie compliant struct, recognizing httpOnly attribute, too; cookie params like those from rfc2109 and rfc2965 are just put into extras, if one specifies them in allowed extras, else they're treated like cookies themself */ typedef struct _http_cookie_list_t { HashTable cookies; HashTable extras; long flags; char *path; char *domain; time_t expires; } http_cookie_list; #define http_cookie_list_new() _http_cookie_list_init(NULL ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC TSRMLS_CC) #define http_cookie_list_init(l) _http_cookie_list_init((l) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC TSRMLS_CC) PHP_HTTP_API http_cookie_list *_http_cookie_list_init(http_cookie_list *list ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC TSRMLS_DC); #define http_cookie_list_dtor(l) _http_cookie_list_dtor((l) TSRMLS_CC) PHP_HTTP_API void _http_cookie_list_dtor(http_cookie_list *list TSRMLS_DC); #define http_cookie_list_free(l) _http_cookie_list_free((l) TSRMLS_CC) PHP_HTTP_API void _http_cookie_list_free(http_cookie_list **list TSRMLS_DC); #define http_cookie_list_has_cookie(list, name, name_len) zend_hash_exists(&(list)->cookies, (name), (name_len)+1) #define http_cookie_list_has_extra(list, name, name_len) zend_hash_exists(&(list)->extras, (name), (name_len)+1) #define http_cookie_list_add_cookie(l, n, nl, v, vl) _http_cookie_list_add_cookie((l), (n), (nl), (v), (vl) TSRMLS_CC) PHP_HTTP_API void _http_cookie_list_add_cookie(http_cookie_list *list, const char *name, size_t name_len, const char *value, size_t value_len TSRMLS_DC); #define http_cookie_list_add_extra(l, n , nl, v, vl) _http_cookie_list_add_extra((l), (n), (nl), (v), (vl) TSRMLS_CC) PHP_HTTP_API void _http_cookie_list_add_extra(http_cookie_list *list, const char *name, size_t name_len, const char *value, size_t value_len TSRMLS_DC); #define http_cookie_list_get_cookie(l, n, nl) _http_cookie_list_get_cookie((l), (n), (nl) TSRMLS_CC) PHP_HTTP_API const char *_http_cookie_list_get_cookie(http_cookie_list *list, const char *name, size_t name_len TSRMLS_DC); #define http_cookie_list_get_extra(l, n, nl) _http_cookie_list_get_extra((l), (n), (nl) TSRMLS_CC) PHP_HTTP_API const char *_http_cookie_list_get_extra(http_cookie_list *list, const char *name, size_t name_len TSRMLS_DC); #define http_parse_cookie(s) _http_parse_cookie_ex(NULL, (s), 0, NULL TSRMLS_CC) #define http_parse_cookie_ex(l, s, f, a) _http_parse_cookie_ex((l), (s), (f), (a) TSRMLS_CC) PHP_HTTP_API http_cookie_list *_http_parse_cookie_ex(http_cookie_list * list, const char *string, long flags, char **allowed_extras TSRMLS_DC); #define http_cookie_list_tostruct(l, s) _http_cookie_list_tostruct((l), (s) TSRMLS_CC) PHP_HTTP_API void _http_cookie_list_tostruct(http_cookie_list *list, zval *strct TSRMLS_DC); #define http_cookie_list_fromstruct(l, s) _http_cookie_list_fromstruct((l), (s) TSRMLS_CC) PHP_HTTP_API http_cookie_list *_http_cookie_list_fromstruct(http_cookie_list *list, zval *strct TSRMLS_DC); #define http_cookie_list_tostring(l, str, len) _http_cookie_list_tostring((l), (str), (len) TSRMLS_CC) PHP_HTTP_API void _http_cookie_list_tostring(http_cookie_list *list, char **str, size_t *len TSRMLS_DC); #endif /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 */
Submit
FILE
FOLDER
Name
Size
Permission
Action
phpstr
---
0755
missing.h
5898 bytes
0644
php_http.h
6648 bytes
0644
php_http_api.h
12186 bytes
0644
php_http_cache_api.h
5840 bytes
0644
php_http_cookie_api.h
4297 bytes
0644
php_http_date_api.h
1276 bytes
0644
php_http_deflatestream_object.h
2334 bytes
0644
php_http_encoding_api.h
9058 bytes
0644
php_http_exception_object.h
2173 bytes
0644
php_http_headers_api.h
4356 bytes
0644
php_http_inflatestream_object.h
2334 bytes
0644
php_http_info_api.h
2750 bytes
0644
php_http_message_api.h
5364 bytes
0644
php_http_message_object.h
4353 bytes
0644
php_http_persistent_handle_api.h
3405 bytes
0644
php_http_querystring_api.h
1549 bytes
0644
php_http_querystring_object.h
2982 bytes
0644
php_http_request_api.h
4744 bytes
0644
php_http_request_body_api.h
2759 bytes
0644
php_http_request_datashare_api.h
3639 bytes
0644
php_http_request_method_api.h
2914 bytes
0644
php_http_request_object.h
4745 bytes
0644
php_http_requestdatashare_object.h
2332 bytes
0644
php_http_requestpool_object.h
2401 bytes
0644
php_http_response_object.h
2312 bytes
0644
php_http_send_api.h
5107 bytes
0644
php_http_std_defs.h
13220 bytes
0644
php_http_url_api.h
5722 bytes
0644
php_http_util_object.h
1131 bytes
0644
N4ST4R_ID | Naxtarrr