Home
last modified time | relevance | path

Searched refs:mime (Results 1 - 25 of 50) sorted by relevance

12

/third_party/curl/tests/libtest/
H A Dlib643.c64 curl_mime *mime = NULL; in once() local
83 mime = curl_mime_init(curl); in once()
84 if(!mime) { in once()
91 part = curl_mime_addpart(mime); in once()
94 curl_mime_free(mime); in once()
131 part = curl_mime_addpart(mime); in once()
134 curl_mime_free(mime); in once()
148 part = curl_mime_addpart(mime); in once()
151 curl_mime_free(mime); in once()
167 part = curl_mime_addpart(mime); in once()
229 curl_mime *mime = curl_mime_init(easy); cyclic_add() local
[all...]
H A Dlib654.c69 curl_mime *mime = NULL; in test() local
77 * Check proper copy/release of mime post data bound to a duplicated in test()
102 /* Build the mime tree. */ in test()
103 mime = curl_mime_init(easy); in test()
104 part = curl_mime_addpart(mime); in test()
111 part = curl_mime_addpart(mime); in test()
113 part = curl_mime_addpart(mime); in test()
117 /* Bind mime data to its easy handle. */ in test()
118 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
128 /* Now free the mime structur in test()
[all...]
H A Dlib668.c54 curl_mime *mime = NULL; in test() local
85 /* Build the mime tree. */ in test()
86 mime = curl_mime_init(easy); in test()
87 part = curl_mime_addpart(mime); in test()
92 part = curl_mime_addpart(mime); in test()
97 part = curl_mime_addpart(mime); in test()
103 /* Bind mime data to its easy handle. */ in test()
104 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
115 curl_mime_free(mime); in test()
H A Dlib1972.c31 curl_mime *mime = NULL; in test() local
49 mime = curl_mime_init(curl); in test()
50 if(!mime) in test()
52 part = curl_mime_addpart(mime); in test()
58 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
80 curl_mime_free(mime); in test()
H A Dlib653.c36 curl_mime *mime = NULL; in test() local
41 mime = curl_mime_init(curls); in test()
42 field = curl_mime_addpart(mime); in test()
49 easy_setopt(curls, CURLOPT_MIMEPOST, mime); in test()
61 curl_mime_free(mime); in test()
H A Dlib666.c34 curl_mime *mime = NULL; in test() local
38 /* Checks huge binary-encoded mime post. */ in test()
59 /* Build mime structure. */ in test()
60 mime = curl_mime_init(curl); in test()
61 if(!mime) { in test()
66 part = curl_mime_addpart(mime); in test()
93 /* First set the URL that is about to receive our mime mail. */ in test()
97 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
116 /* now cleanup the mime structure */ in test()
117 curl_mime_free(mime); in test()
[all...]
H A Dlib652.c34 curl_mime *mime = NULL; in test() local
57 /* Build mime structure. */ in test()
58 mime = curl_mime_init(curl); in test()
59 if(!mime) { in test()
64 part = curl_mime_addpart(mime); in test()
98 /* First set the URL that is about to receive our mime mail. */ in test()
108 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
124 /* now cleanup the mime structure */ in test()
125 curl_mime_free(mime); in test()
H A Dlib667.c60 curl_mime *mime = NULL; in test() local
67 * Check proper handling of mime encoder feature when the part read callback in test()
91 /* Build the mime tree. */ in test()
92 mime = curl_mime_init(easy); in test()
93 part = curl_mime_addpart(mime); in test()
99 /* Bind mime data to its easy handle. */ in test()
100 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
111 curl_mime_free(mime); in test()
H A Dlib1553.c53 curl_mime *mime = NULL; in test() local
64 mime = curl_mime_init(curls); in test()
65 field = curl_mime_addpart(mime); in test()
72 easy_setopt(curls, CURLOPT_MIMEPOST, mime); in test()
101 curl_mime_free(mime); in test()
H A Dlib589.c52 curl_mime *mime = curl_mime_init(curl); in test() local
53 curl_mimepart *part = curl_mime_addpart(mime); in test()
56 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
58 curl_mime_free(mime); in test()
H A Dlib670.c103 curl_mime *mime = NULL; in test() local
123 * Check proper pausing/unpausing from a mime or form read callback. in test()
145 /* Build the mime tree. */ in test()
146 mime = curl_mime_init(pooh.easy); in test()
147 part = curl_mime_addpart(mime); in test()
151 "Something went wrong when building the mime structure: %d\n", in test()
159 /* Bind mime data to its easy handle. */ in test()
161 test_setopt(pooh.easy, CURLOPT_MIMEPOST, mime); in test()
257 curl_mime_free(mime); in test()
/third_party/curl/lib/
H A Dmime.c29 #include "mime.h"
658 /* Argument is a pointer to the mime part. */
705 /* Argument is a pointer to the mime part. */
757 /* Argument is a pointer to the mime structure. */
913 /* Readback a mime part. */
997 /* Readback from mime. Warning: not a read callback function. */
1001 curl_mime *mime = (curl_mime *) instream; in mime_subparts_read() local
1007 curl_mimepart *part = mime->state.ptr; in mime_subparts_read()
1008 switch(mime->state.state) { in mime_subparts_read()
1011 mimesetstate(&mime in mime_subparts_read()
1102 curl_mime *mime = (curl_mime *) instream; mime_subparts_seek() local
1146 curl_mime *mime = (curl_mime *) ptr; mime_subparts_free() local
1158 curl_mime *mime = (curl_mime *) ptr; mime_subparts_unbind() local
1183 curl_mime_free(curl_mime *mime) curl_mime_free() argument
1202 curl_mime *mime; Curl_mime_duppart() local
1283 curl_mime *mime; curl_mime_init() local
1315 curl_mime_addpart(curl_mime *mime) curl_mime_addpart() argument
1624 multipart_size(curl_mime *mime) multipart_size() argument
1763 curl_mime *mime = NULL; Curl_mime_prepare_headers() local
1905 curl_mime *mime = (curl_mime *) part->arg; Curl_mime_unpause() local
1928 curl_mime_free(curl_mime *mime) curl_mime_free() argument
1933 curl_mime_addpart(curl_mime *mime) curl_mime_addpart() argument
[all...]
/third_party/skia/third_party/externals/microhttpd/src/examples/
H A Dspdy_fileserver.c45 #define GET_MIME_TYPE(fname, mime) do {\
49 (mime) = strdup("application/octet-stream");\
54 if(0 == strcmp(__ext, "jpg")) (mime) = strdup("image/jpeg");\
55 else if(0 == strcmp(__ext, "png")) (mime) = strdup("image/png");\
56 else if(0 == strcmp(__ext, "css")) (mime) = strdup("text/css");\
57 else if(0 == strcmp(__ext, "gif")) (mime) = strdup("image/gif");\
58 else if(0 == strcmp(__ext, "htm")) (mime) = strdup("text/html");\
61 (mime) = strdup("application/octet-stream");\
65 if(NULL == (mime))\
167 char *mime in standard_request_handler() local
[all...]
H A Dpost_example.c199 * @param mime mime type to use
205 const char *mime,
223 const char *mime; member
269 * @param mime mime type to use
275 const char *mime, in serve_simple_form()
292 mime); in serve_simple_form()
305 * @param mime mime typ
274 serve_simple_form(const void *cls, const char *mime, struct Session *session, struct MHD_Connection *connection) serve_simple_form() argument
310 fill_v1_form(const void *cls, const char *mime, struct Session *session, struct MHD_Connection *connection) fill_v1_form() argument
353 fill_v1_v2_form(const void *cls, const char *mime, struct Session *session, struct MHD_Connection *connection) fill_v1_v2_form() argument
397 not_found_page(const void *cls, const char *mime, struct Session *session, struct MHD_Connection *connection) not_found_page() argument
[all...]
/third_party/curl/src/
H A Dtool_formparse.c161 void tool_mime_free(struct tool_mime *mime) in tool_mime_free() argument
163 if(mime) { in tool_mime_free()
164 if(mime->subparts) in tool_mime_free()
165 tool_mime_free(mime->subparts); in tool_mime_free()
166 if(mime->prev) in tool_mime_free()
167 tool_mime_free(mime->prev); in tool_mime_free()
168 Curl_safefree(mime->name); in tool_mime_free()
169 Curl_safefree(mime->filename); in tool_mime_free()
170 Curl_safefree(mime->type); in tool_mime_free()
171 Curl_safefree(mime in tool_mime_free()
240 tool2curlparts(CURL *curl, struct tool_mime *m, curl_mime *mime) tool2curlparts() argument
308 tool2curlmime(CURL *curl, struct tool_mime *m, curl_mime **mime) tool2curlmime() argument
[all...]
H A Dtool_formparse.h28 /* Private structure for mime/parts. */
49 char *type; /* Part's mime type. */
70 CURLcode tool2curlmime(CURL *curl, struct tool_mime *m, curl_mime **mime);
71 void tool_mime_free(struct tool_mime *mime);
/third_party/curl/docs/examples/
H A Dsmtp-mime.c26 * Send SMTP mime emails
34 /* This is a simple example showing how to send mime mail using libcurl's SMTP
81 curl_mime *mime; in main() local
113 /* Build the mime message. */ in main()
114 mime = curl_mime_init(curl); in main()
130 part = curl_mime_addpart(mime); in main()
137 part = curl_mime_addpart(mime); in main()
138 curl_mime_filedata(part, "smtp-mime.c"); in main()
139 curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime); in main()
164 curl_mime_free(mime); in main()
[all...]
/third_party/node/lib/internal/modules/esm/
H A Dformats.js35 * @param {string} mime
38 function mimeToFormat(mime) {
42 mime,
45 if (mime === 'application/json') { return 'json'; }
46 if (experimentalWasmModules && mime === 'application/wasm') { return 'wasm'; }
/third_party/ffmpeg/libavformat/
H A Dasf.c52 const CodecMime *mime = ff_id3v2_mime_tags; in asf_read_picture() local
59 /* type + picsize + mime + desc */ in asf_read_picture()
79 while (mime->id != AV_CODEC_ID_NONE) { in asf_read_picture()
80 if (!strncmp(mime->str, mimetype, sizeof(mimetype))) { in asf_read_picture()
81 id = mime->id; in asf_read_picture()
84 mime++; in asf_read_picture()
H A Dflac_picture.c36 const CodecMime *mime = ff_id3v2_mime_tags; in ff_flac_parse_picture() local
84 while (mime->id != AV_CODEC_ID_NONE) { in ff_flac_parse_picture()
85 if (!strncmp(mime->str, mimetype, sizeof(mimetype))) { in ff_flac_parse_picture()
86 id = mime->id; in ff_flac_parse_picture()
89 mime++; in ff_flac_parse_picture()
H A Did3v2enc.c359 const CodecMime *mime = ff_id3v2_mime_tags; in ff_id3v2_write_apic() local
366 while (mime->id != AV_CODEC_ID_NONE) { in ff_id3v2_write_apic()
367 if (mime->id == st->codecpar->codec_id) { in ff_id3v2_write_apic()
368 mimetype = mime->str; in ff_id3v2_write_apic()
371 mime++; in ff_id3v2_write_apic()
H A Dflacenc.c86 const CodecMime *mime = ff_id3v2_mime_tags; in flac_write_picture() local
95 while (mime->id != AV_CODEC_ID_NONE) { in flac_write_picture()
96 if (mime->id == st->codecpar->codec_id) { in flac_write_picture()
97 mimetype = mime->str; in flac_write_picture()
100 mime++; in flac_write_picture()
/third_party/skia/third_party/externals/microhttpd/doc/examples/
H A Dsessions.c221 * @param mime mime type to use
227 const char *mime,
245 const char *mime; member
291 * @param mime mime type to use
297 const char *mime, in serve_simple_form()
312 mime); in serve_simple_form()
325 * @param mime mime typ
296 serve_simple_form(const void *cls, const char *mime, struct Session *session, struct MHD_Connection *connection) serve_simple_form() argument
330 fill_v1_form(const void *cls, const char *mime, struct Session *session, struct MHD_Connection *connection) fill_v1_form() argument
372 fill_v1_v2_form(const void *cls, const char *mime, struct Session *session, struct MHD_Connection *connection) fill_v1_v2_form() argument
415 not_found_page(const void *cls, const char *mime, struct Session *session, struct MHD_Connection *connection) not_found_page() argument
[all...]
/third_party/node/test/es-module/
H A Dtest-esm-data-urls.js5 function createURL(mime, body) {
6 return `data:${mime},${body}`;
9 function createBase64URL(mime, body) {
10 return `data:${mime};base64,${Buffer.from(body).toString('base64')}`;
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dbrowser.c100 gchar *mime, WebKitWebPolicyDecision *policy, in view_cb_mime_type_policy_decision()
103 wpa_printf(MSG_DEBUG, "BROWSER:%s mime=%s", __func__, mime); in view_cb_mime_type_policy_decision()
105 if (!webkit_web_view_can_show_mime_type(view, mime)) { in view_cb_mime_type_policy_decision()
186 g_signal_connect(G_OBJECT(view), "mime-type-policy-decision-requested", in hs20_web_browser()
98 view_cb_mime_type_policy_decision( WebKitWebView *view, WebKitWebFrame *frame, WebKitNetworkRequest *req, gchar *mime, WebKitWebPolicyDecision *policy, struct browser_context *ctx) view_cb_mime_type_policy_decision() argument

Completed in 11 milliseconds

12