NetSurf
utils
http
challenge.h
Go to the documentation of this file.
1
/*
2
* Copyright 2010 John-Mark Bell <jmb@netsurf-browser.org>
3
*
4
* This file is part of NetSurf, http://www.netsurf-browser.org/
5
*
6
* NetSurf is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
9
*
10
* NetSurf is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef NETSURF_UTILS_HTTP_CHALLENGE_H_
20
#define NETSURF_UTILS_HTTP_CHALLENGE_H_
21
22
#include <libwapcaplet/libwapcaplet.h>
23
24
#include "
utils/http/parameter.h
"
25
26
typedef
struct
http_challenge
http_challenge
;
27
28
/**
29
* Iterate over a challenge list
30
*
31
* \param cur Pointer to current iteration position, list head to start
32
* \param scheme Pointer to location to receive challenge scheme
33
* \param parameters Pointer to location to receive challenge parameters
34
* \return Pointer to next iteration position, or NULL for end of iteration
35
*/
36
const
http_challenge
*
http_challenge_list_iterate
(
const
http_challenge
*cur,
37
lwc_string **
scheme
,
http_parameter
**parameters);
38
39
/**
40
* Destroy a list of HTTP challenges
41
*
42
* \param list List to destroy
43
*/
44
void
http_challenge_list_destroy
(
http_challenge
*list);
45
46
#endif
47
http_challenge_list_iterate
const http_challenge * http_challenge_list_iterate(const http_challenge *cur, lwc_string **scheme, http_parameter **parameters)
Iterate over a challenge list.
Definition:
challenge.c:123
http_challenge_list_destroy
void http_challenge_list_destroy(http_challenge *list)
Destroy a list of HTTP challenges.
Definition:
challenge.c:136
parameter.h
http_challenge
Representation of an HTTP challenge.
Definition:
challenge.c:31
http_challenge::scheme
lwc_string * scheme
Challenge scheme.
Definition:
challenge.c:34
http_parameter
Representation of an HTTP parameter.
Definition:
parameter.c:31
Generated on Fri Nov 15 2024 15:34:10 for NetSurf by
1.9.4