diff options
author | James Bursa <james@netsurf-browser.org> | 2003-06-26 11:41:26 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-06-26 11:41:26 +0000 |
commit | 1145b231d4b682478bdf052efbade9dbd2df11e8 (patch) | |
tree | 98d3e275e25e89358c158a0fba87b78d8644f510 /content/fetch.h | |
parent | 1246f7b9703e3085cece064699909f240e00effc (diff) | |
download | netsurf-1145b231d4b682478bdf052efbade9dbd2df11e8.tar.gz netsurf-1145b231d4b682478bdf052efbade9dbd2df11e8.tar.bz2 |
[project @ 2003-06-26 11:41:26 by bursa]
Implement HTTP redirects.
svn path=/import/netsurf/; revision=187
Diffstat (limited to 'content/fetch.h')
-rw-r--r-- | content/fetch.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content/fetch.h b/content/fetch.h index 92c269a02..af1414a77 100644 --- a/content/fetch.h +++ b/content/fetch.h @@ -1,5 +1,5 @@ /** - * $Id: fetch.h,v 1.3 2003/04/17 21:35:02 bursa Exp $ + * $Id: fetch.h,v 1.4 2003/06/26 11:41:26 bursa Exp $ * * This module handles fetching of data from any url. * @@ -16,6 +16,8 @@ * Content-Type header in data, then one or more times with FETCH_DATA with * some data for the url, and finally with FETCH_FINISHED. Alternatively, * FETCH_ERROR indicates an error occurred: data contains an error message. + * FETCH_REDIRECT may replace the FETCH_TYPE, FETCH_DATA, FETCH_FINISHED + * sequence if the server sends a replacement URL. * Some private data can be passed as the last parameter to fetch_start, and * callbacks will contain this. * @@ -28,7 +30,7 @@ #ifndef _NETSURF_DESKTOP_FETCH_H_ #define _NETSURF_DESKTOP_FETCH_H_ -typedef enum {FETCH_TYPE, FETCH_DATA, FETCH_FINISHED, FETCH_ERROR} fetch_msg; +typedef enum {FETCH_TYPE, FETCH_DATA, FETCH_FINISHED, FETCH_ERROR, FETCH_REDIRECT} fetch_msg; struct content; struct fetch; |