diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-09-27 14:20:14 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-09-27 23:09:56 +0100 |
commit | b1844cbf2a997ccf999286472ffc4d2c4bf79c1e (patch) | |
tree | 7bcced07b6e6f64898184179a6778527200eacd1 /content/fetchers/about/private.h | |
parent | ff3b948ac0ee0142535bea9a6ebde57b7056c2eb (diff) | |
download | netsurf-b1844cbf2a997ccf999286472ffc4d2c4bf79c1e.tar.gz netsurf-b1844cbf2a997ccf999286472ffc4d2c4bf79c1e.tar.bz2 |
split out about scheme query private handler
Diffstat (limited to 'content/fetchers/about/private.h')
-rw-r--r-- | content/fetchers/about/private.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/content/fetchers/about/private.h b/content/fetchers/about/private.h index 808a91e79..fcf9b1987 100644 --- a/content/fetchers/about/private.h +++ b/content/fetchers/about/private.h @@ -25,6 +25,7 @@ #define NETSURF_CONTENT_FETCHERS_ABOUT_PRIVATE_H struct fetch_about_context; +struct fetch_multipart_data; /** * set http response code on about response @@ -43,8 +44,7 @@ bool fetch_about_send_header(struct fetch_about_context *ctx, const char *fmt, . /** * send data on the about response */ -nserror -fetch_about_senddata(struct fetch_about_context *ctx, const uint8_t *data, size_t data_len); +nserror fetch_about_senddata(struct fetch_about_context *ctx, const uint8_t *data, size_t data_len); /** * send formatted data on the about response @@ -57,7 +57,21 @@ nserror fetch_about_ssenddataf(struct fetch_about_context *ctx, const char *fmt, bool fetch_about_send_finished(struct fetch_about_context *ctx); /** + * Generate a 500 server error respnse + * + * \param ctx The fetcher context. + * \return true if handled false if aborted. + */ +bool fetch_about_srverror(struct fetch_about_context *ctx); + +/** + * get the fetch url */ struct nsurl *fetch_about_get_url(struct fetch_about_context *ctx); +/** + * get multipart fetch data + */ +const struct fetch_multipart_data *fetch_about_get_multipart(struct fetch_about_context *ctx); + #endif |