summaryrefslogtreecommitdiffstats
path: root/branches/1.0/tinyHTTP/include/tinyhttp/headers
diff options
context:
space:
mode:
Diffstat (limited to 'branches/1.0/tinyHTTP/include/tinyhttp/headers')
-rw-r--r--branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header.h101
-rw-r--r--branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Authorization.h77
-rw-r--r--branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Content_Length.h62
-rw-r--r--branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Content_Type.h76
-rw-r--r--branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Dummy.h62
-rw-r--r--branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_ETag.h67
-rw-r--r--branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Transfer_Encoding.h76
-rw-r--r--branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_WWW_Authenticate.h82
8 files changed, 0 insertions, 603 deletions
diff --git a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header.h b/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header.h
deleted file mode 100644
index 8382565..0000000
--- a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header.h
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-
-/**@file thttp_header.h
- * @brief Defines a HTTP header (field-name: field-value).
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef TINYHTTP_HEADER_H
-#define TINYHTTP_HEADER_H
-
-#include "tinyhttp_config.h"
-
-#include "tsk_ragel_state.h"
-
-#include "tsk_params.h"
-#include "tsk_object.h"
-#include "tsk_safeobj.h"
-#include "tsk_memory.h"
-#include "tsk_string.h"
-#include "tsk_list.h"
-#include "tsk_buffer.h"
-
-THTTP_BEGIN_DECLS
-
-#define THTTP_HEADER(self) ((thttp_header_t*)(self))
-#define THTTP_HEADER_PARAMS(self) (THTTP_HEADER(self)->params)
-
-// FD
-struct thttp_header_s;
-
-typedef int (*thttp_header_value_tostring_f)(const struct thttp_header_s* header, tsk_buffer_t* output);
-#define THTTP_HEADER_VALUE_TOSTRING_F(self) ((thttp_header_value_tostring_f)(self))
-
-/**
- * @enum thttp_header_type_e
- *
- * @brief List of all supported headers.
-**/
-typedef enum thttp_header_type_e
-{
- thttp_htype_Authorization,
- thttp_htype_Content_Length,
- thttp_htype_Content_Type,
- thttp_htype_Dummy,
- thttp_htype_ETag,
- thttp_htype_Proxy_Authenticate,
- thttp_htype_Proxy_Authorization,
- thttp_htype_Transfer_Encoding,
- thttp_htype_WWW_Authenticate,
-}
-thttp_header_type_t;
-
-/*================================
-*/
-typedef struct thttp_header_s
-{
- TSK_DECLARE_OBJECT;
- thttp_header_type_t type;
- thttp_header_value_tostring_f tostring;
- tsk_params_L_t *params;
-}
-thttp_header_t;
-
-#define THTTP_DECLARE_HEADER thttp_header_t header
-typedef tsk_list_t thttp_headers_L_t; /**< List of @ref thttp_header_t elements. */
-/*
-================================*/
-
-TINYHTTP_API const char *thttp_header_get_name(thttp_header_type_t type);
-TINYHTTP_API const char *thttp_header_get_nameex(const thttp_header_t *self);
-TINYHTTP_API char thttp_header_get_param_separator(const thttp_header_t *self);
-TINYHTTP_API int thttp_header_serialize(const thttp_header_t *self, tsk_buffer_t *output);
-TINYHTTP_API char* thttp_header_tostring(const thttp_header_t *self);
-TINYHTTP_API char* thttp_header_value_tostring(const thttp_header_t *self);
-
-THTTP_END_DECLS
-
-#endif /* TINYHTTP_HEADERS_H */
-
diff --git a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Authorization.h b/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Authorization.h
deleted file mode 100644
index f2444cc..0000000
--- a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Authorization.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-
-/**@file thttp_header_Authorization.h
- * @brief HTTP header 'Authorization'.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef _THTTP_HEADER_AUTHORIZATION_H_
-#define _THTTP_HEADER_AUTHORIZATION_H_
-
-#include "tinyhttp_config.h"
-#include "tinyhttp/headers/thttp_header.h"
-
-
-THTTP_BEGIN_DECLS
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-/// HTTP header 'Authorization' .
-///
-/// @par ABNF = Authorization = "Authorization" ":" credentials
-/// credentials = "Digest" digest-response
-/// digest-response = digest-response-value *(COMMA digest-response-value)
-/// digest-response-value = ( username / realm / nonce / digest-url / auth-response / [ algorithm ] / [cnonce] / [opaque] / [message-qop] / [nonce-count] / [auth-param] )
-///
-////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct thttp_header_Authorization_s
-{
- THTTP_DECLARE_HEADER;
-
- char* scheme;
- char* username;
- char* realm;
- char* nonce;
- char* uri;
- char* response;
- char* algorithm;
- char* cnonce;
- char* opaque;
- char* qop;
- char* nc;
-}
-thttp_header_Authorization_t;
-typedef thttp_header_Authorization_t thttp_header_Proxy_Authorization_t;
-
-TINYHTTP_API thttp_header_Authorization_t *thttp_header_Authorization_parse(const char *data, tsk_size_t size);
-TINYHTTP_API thttp_header_Proxy_Authorization_t *thttp_header_Proxy_Authorization_parse(const char *data, tsk_size_t size);
-
-thttp_header_Authorization_t* thttp_header_authorization_create();
-
-TINYHTTP_GEXTERN const tsk_object_def_t *thttp_header_Authorization_def_t;
-
-THTTP_END_DECLS
-
-#endif /* _THTTP_HEADER_AUTHORIZATION_H_ */
-
diff --git a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Content_Length.h b/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Content_Length.h
deleted file mode 100644
index 3ce214e..0000000
--- a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Content_Length.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-
-/**@file thttp_header_Content_Length.h
- * @brief HTTP header 'Content-Length'.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef _THTTP_HEADER_CONTENT_LENGTH_H_
-#define _THTTP_HEADER_CONTENT_LENGTH_H_
-
-#include "tinyhttp_config.h"
-#include "tinyhttp/headers/thttp_header.h"
-
-THTTP_BEGIN_DECLS
-
-#define THTTP_HEADER_CONTENT_LENGTH_VA_ARGS(length) thttp_header_Content_Length_def_t, (uint32_t)length
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-/// HTTP header 'Content-Length'.
-///
-/// @par ABNF: Content-Length / l
-/// Content-Length = "Content-Length" HCOLON 1*DIGIT
-///
-////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct thttp_header_Content_Length_s
-{
- THTTP_DECLARE_HEADER;
-
- uint32_t length;
-}
-thttp_header_Content_Length_t;
-
-thttp_header_Content_Length_t *thttp_header_Content_Length_parse(const char *data, tsk_size_t size);
-
-TINYHTTP_GEXTERN const tsk_object_def_t *thttp_header_Content_Length_def_t;
-
-THTTP_END_DECLS
-
-#endif /* _THTTP_HEADER_CONTENT_LENGTH_H_ */
-
diff --git a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Content_Type.h b/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Content_Type.h
deleted file mode 100644
index bdfcce4..0000000
--- a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Content_Type.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-
-/**@file thttp_header_Content_Type.h
- * @brief HTTP header 'Content-Type'.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef _THTTP_HEADER_CONTENT_TYPE_H_
-#define _THTTP_HEADER_CONTENT_TYPE_H_
-
-#include "tinyhttp_config.h"
-#include "tinyhttp/headers/thttp_header.h"
-
-THTTP_BEGIN_DECLS
-
-#define THTTP_HEADER_CONTENT_TYPE_VA_ARGS(type) thttp_header_Content_Type_def_t, (const char*)type
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-/// HTTP header 'Content-Type'.
-///
-/// @par ABNF= Content-Type
-/// Content-Type = ( "Content-Type" ) HCOLON media-type
-/// media-type = m-type SLASH m-subtype *( SEMI m-parameter)
-/// m-type = discrete-type / composite-type
-/// discrete-type = "text" / "image" / "audio" / "video" / "application" / extension-token
-/// composite-type = "message" / "multipart" / extension-token
-/// extension-token = ietf-token / x-token
-/// ietf-token = token
-/// x-token = "x-" token
-/// m-subtype = extension-token / iana-token
-/// iana-token = token
-/// m-parameter = m-attribute EQUAL m-value
-/// m-attribute = token
-/// m-value = token / quoted-string
-///
-////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct thttp_header_Content_Type_s
-{
- THTTP_DECLARE_HEADER;
-
- char* type;
-}
-thttp_header_Content_Type_t;
-
-
-thttp_header_Content_Type_t *thttp_header_Content_Type_parse(const char *data, tsk_size_t size);
-
-TINYHTTP_GEXTERN const tsk_object_def_t *thttp_header_Content_Type_def_t;
-
-
-THTTP_END_DECLS
-
-#endif /* _THTTP_HEADER_CONTENT_TYPE_H_ */
-
diff --git a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Dummy.h b/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Dummy.h
deleted file mode 100644
index cb515fb..0000000
--- a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Dummy.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-
-/**@file thttp_header_Dummy.h
- * @brief HTTP dummy header.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef _THTTP_HEADER_DUMMY_H_
-#define _THTTP_HEADER_DUMMY_H_
-
-#include "tinyhttp_config.h"
-#include "tinyhttp/headers/thttp_header.h"
-
-THTTP_BEGIN_DECLS
-
-#define THTTP_HEADER_DUMMY_VA_ARGS(name, value) thttp_header_Dummy_def_t, (const char*)name, (const char*)value
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-/// HTTP Dummy header.
-///
-/// @par ABNF : token SP* HCOLON SP*<: any*
-///
-////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct thttp_header_Dummy_s
-{
- THTTP_DECLARE_HEADER;
-
- char *name;
- char *value;
-}
-thttp_header_Dummy_t;
-
-thttp_header_Dummy_t *thttp_header_Dummy_parse(const char *data, tsk_size_t size);
-
-TINYHTTP_GEXTERN const tsk_object_def_t *thttp_header_Dummy_def_t;
-
-THTTP_END_DECLS
-
-#endif /* _THTTP_HEADER_DUMMY_H_ */
-
diff --git a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_ETag.h b/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_ETag.h
deleted file mode 100644
index 34c7e1d..0000000
--- a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_ETag.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-
-/**@file thttp_header_ETag.h
- * @brief HTTP 'ETag' header.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef _THTTP_HEADER_ETAG_H_
-#define _THTTP_HEADER_ETAG_H_
-
-#include "tinyhttp_config.h"
-#include "tinyhttp/headers/thttp_header.h"
-
-THTTP_BEGIN_DECLS
-
-#define THTTP_HEADER_ETAG_VA_ARGS(value) thttp_header_ETag_def_t, (const char*)value
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-/// HTTP ETag header.
-///
-/// @par ABNF : ETag = "ETag" ":" entity-tag
-/// entity-tag = [ weak ] opaque-tag
-/// weak = "W/"
-/// opaque-tag = quoted-string
-////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct thttp_header_ETag_s
-{
- THTTP_DECLARE_HEADER;
-
- char *value;
- tsk_bool_t isWeak;
-}
-thttp_header_ETag_t;
-
-thttp_header_ETag_t *thttp_header_ETag_parse(const char *data, tsk_size_t size);
-
-thttp_header_ETag_t* thttp_header_etag_create(const char* value);
-thttp_header_ETag_t* thttp_header_etag_create_null();
-
-TINYHTTP_GEXTERN const tsk_object_def_t *thttp_header_ETag_def_t;
-
-THTTP_END_DECLS
-
-#endif /* _THTTP_HEADER_ETAG_H_ */
-
diff --git a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Transfer_Encoding.h b/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Transfer_Encoding.h
deleted file mode 100644
index 2bc041c..0000000
--- a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_Transfer_Encoding.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-
-/**@file thttp_header_Transfer_Encoding.h
- * @brief HTTP header 'Transfer-Encoding'.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef _THTTP_HEADER_TRANSFER_ENCODING_H_
-#define _THTTP_HEADER_TRANSFER_ENCODING_H_
-
-#include "tinyhttp_config.h"
-#include "tinyhttp/headers/thttp_header.h"
-
-THTTP_BEGIN_DECLS
-
-#define THTTP_HEADER_TRANSFER_ENCODING_VA_ARGS(encoding) thttp_header_Transfer_Encoding_def_t, (const char*)encoding
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-/// HTTP header 'Transfer-Encoding'.
-///
-/// @par ABNF= Transfer-Encoding = "Transfer-Encoding" ":" transfer-coding *(COMMA transfer-coding)
-///
-/// transfer-coding = "chunked" / transfer-extension
-/// transfer-extension = token *( ";" parameter )
-/// parameter = attribute "=" value
-/// attribute = token
-/// value = token / quoted-string
-///
-////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct thttp_header_Transfer_Encoding_s
-{
- THTTP_DECLARE_HEADER;
-
- char* encoding;
-}
-thttp_header_Transfer_Encoding_t;
-
-
-thttp_header_Transfer_Encoding_t *thttp_header_Transfer_Encoding_parse(const char *data, tsk_size_t size);
-
-thttp_header_Transfer_Encoding_t* thttp_header_transfer_encoding_create(const char* encoding);
-thttp_header_Transfer_Encoding_t* thttp_header_transfer_encoding_create_null();
-
-
-thttp_header_Transfer_Encoding_t* thttp_header_transfer_encoding_create(const char* encoding);
-thttp_header_Transfer_Encoding_t* thttp_header_transfer_encoding_create_null();
-
-TINYHTTP_GEXTERN const tsk_object_def_t *thttp_header_Transfer_Encoding_def_t;
-
-
-THTTP_END_DECLS
-
-#endif /* _THTTP_HEADER_TRANSFER_ENCODING_H_ */
-
diff --git a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_WWW_Authenticate.h b/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_WWW_Authenticate.h
deleted file mode 100644
index f597d5a..0000000
--- a/branches/1.0/tinyHTTP/include/tinyhttp/headers/thttp_header_WWW_Authenticate.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-
-/**@file thttp_header_WWW_Authenticate.h
- * @brief HTTP header 'WWW-Authenticate'.
- *
- * @author Mamadou Diop <diopmamadou(at)doubango.org>
- *
- * @date Created: Sat Nov 8 16:54:58 2009 mdiop
- */
-#ifndef _THTTP_HEADER_WWW_Authenticate_H_
-#define _THTTP_HEADER_WWW_Authenticate_H_
-
-#include "tinyhttp_config.h"
-#include "tinyhttp/headers/thttp_header.h"
-
-THTTP_BEGIN_DECLS
-
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-///
-/// HTTP header 'WWW-Authenticate'.
-///
-/// @par ABNF = WWW-Authenticate = "WWW-Authenticate" HCOLON challenge
-/// challenge = ("Digest" LWS digest-cln *(COMMA digest-cln)) / other-challenge
-/// other-challenge = auth-scheme / auth-param *(COMMA auth-param)
-/// digest-cln = realm / domain / nonce / opaque / stale / algorithm / qop-options / auth-param
-/// realm = "realm" EQUAL realm-value
-/// realm-value = quoted-string
-/// domain = "domain" EQUAL LDQUOT URI *( 1*SP URI ) RDQUOT
-/// URI = absoluteURI / abs-path
-/// opaque = "opaque" EQUAL quoted-string
-/// stale = "stale" EQUAL ( "true" / "false" )
-/// qop-options = "qop" EQUAL LDQUOT qop-value *("," qop-value) RDQUOT
-/// qop-value = "auth" / "auth-int" / token
-///
-////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef struct thttp_header_WWW_Authenticate_s
-{
- THTTP_DECLARE_HEADER;
-
- char* scheme;
- char* realm;
- char* domain;
- char* nonce;
- char* opaque;
- tsk_bool_t stale;
- char* algorithm;
- char* qop;
-}
-thttp_header_WWW_Authenticate_t;
-
-typedef thttp_header_WWW_Authenticate_t thttp_header_Proxy_Authenticate_t;
-
-TINYHTTP_API thttp_header_WWW_Authenticate_t *thttp_header_WWW_Authenticate_parse(const char *data, tsk_size_t size);
-TINYHTTP_API thttp_header_Proxy_Authenticate_t *thttp_header_Proxy_Authenticate_parse(const char *data, tsk_size_t size);
-
-TINYHTTP_GEXTERN const tsk_object_def_t *thttp_header_WWW_Authenticate_def_t;
-
-THTTP_END_DECLS
-
-#endif /* _THTTP_HEADER_WWW_Authenticate_H_ */
-
OpenPOWER on IntegriCloud