Skip to content

Commit 71aaa18

Browse files
committed
Deployed a8370e6 to 5.9 with MkDocs 1.4.2 and mike 1.1.2
1 parent 19b7af9 commit 71aaa18

5 files changed

Lines changed: 131 additions & 31 deletions

File tree

5.9/content-types/index.html

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,12 @@ <h3 id="special-treatment-of-content-type-multipartform-data">Special Treatment
929929
<p>Content type <code>multipart/form-data</code> is commonly used to transfer files to a server or to send multiple types of content in the request payload. If you specify a content type of <code>'multipart/form-data'</code>:</p>
930930
<ul>
931931
<li><code>Params</code> must be a namespace with named elements.</li>
932-
<li>Each element in <code>Params</code> consists of the data for the element optionally followed by a content type for the element.</li>
932+
<li>Each element in <code>Params</code> consists of up to 3 elements:<ul>
933+
<li>content - the data for the element, if sending a file this is the file name (see the section below) </li>
934+
<li>type - the MIME content-type type for the element</li>
935+
<li>filename - if content is to be saved as a file, this is the filename for the content</li>
936+
</ul>
937+
</li>
933938
<li>To send a file, prefix the file name with either:<ul>
934939
<li><code>@</code> to upload the file's content and its name</li>
935940
<li><code>&lt;</code> to upload just the file's content</li>
@@ -942,19 +947,64 @@ <h3 id="special-treatment-of-content-type-multipartform-data">Special Treatment
942947
<li>Extra newlines have been removed for compactness.</li>
943948
<li>The file <code>/tmp/foo.txt</code> contains <code>Hello World</code>.</li>
944949
<li>We create 4 parts to be sent with the request:<ul>
945-
<li>a simple string</li>
950+
<li>a JSON array (with content type 'application/json')</li>
946951
<li>a named file - both the content and file name will be sent</li>
952+
<li>some in-workspace content to be saved as a file named 'data.txt'</li>
953+
<li>a simple string</li>
947954
<li>an unnamed file - only the content will be sent</li>
948-
<li>a JSON array (with content type 'application/json')</li>
949955
</ul>
950956
</li>
951957
</ul>
958+
<pre><code> h←HttpCommand.New 'post' 'someurl.com'
959+
p←⎕NS '' ⍝ create a namespace
960+
p.json←'[1,2,3]' 'application/json' ⍝ value and content type
961+
p.namedfile←'@/tmp/foo.txt' ⍝ @ = include the file name
962+
p.saveasfile←'this is the content' 'text/plain' 'data.txt' ⍝ save content as a file
963+
p.string←'/tmp/foo.txt' ⍝ just a value
964+
p.unnamedfile←'&lt;/tmp/foo.txt' ⍝ &lt; = do not include the file name
965+
h.Params←p ⍝ assign the request Params
966+
h.ContentType←'multipart/form-data' ⍝
967+
h.Show
968+
POST / HTTP/1.1
969+
Host: someurl.com
970+
User-Agent: Dyalog-HttpCommand/5.9.1
971+
Accept: */*
972+
Accept-Encoding: gzip, deflate
973+
Content-Type: multipart/form-data; boundary=YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
974+
Content-Length: 806
975+
976+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
977+
Content-Disposition: form-data; name=&quot;json&quot;
978+
Content-Type: application/json
979+
[1,2,3]
980+
981+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
982+
Content-Disposition: form-data; name=&quot;namedfile&quot;; filename=&quot;foo.txt&quot;
983+
Content-Type: text/plain
984+
this is a test
985+
986+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
987+
Content-Disposition: form-data; name=&quot;saveasfile&quot;; filename=&quot;data.txt&quot;
988+
Content-Type: text/plain
989+
this is the content
990+
991+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
992+
Content-Disposition: form-data; name=&quot;string&quot;
993+
/tmp/foo.txt
994+
995+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
996+
Content-Disposition: form-data; name=&quot;unnamedfile&quot;
997+
Content-Type: text/plain
998+
this is a test
999+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q--
1000+
</code></pre>
9521001
<pre><code> h←HttpCommand.New 'post' 'someurl.com'
9531002
p←⎕NS '' ⍝ create a namespace
9541003
p.string←'/tmp/foo.txt' ⍝ just a value
9551004
p.namedfile←'@/tmp/foo.txt' ⍝ @ = include the file name
9561005
p.unnamedfile←'&lt;/tmp/foo.txt' ⍝ &lt; = do not include the file name
9571006
p.json←'[1,2,3]' 'application/json' ⍝ value and content type
1007+
p.saveasfile←'this is the content' 'text/plain' 'data.txt'
9581008
h.Params←p ⍝ assign the request Params
9591009
h.ContentType←'multipart/form-data' ⍝
9601010
h.Show

5.9/print_page/index.html

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3982,7 +3982,12 @@ <h3 id="content-types-special-treatment-of-content-type-multipartform-data">Spec
39823982
<p>Content type <code>multipart/form-data</code> is commonly used to transfer files to a server or to send multiple types of content in the request payload. If you specify a content type of <code>'multipart/form-data'</code>:</p>
39833983
<ul>
39843984
<li><code>Params</code> must be a namespace with named elements.</li>
3985-
<li>Each element in <code>Params</code> consists of the data for the element optionally followed by a content type for the element.</li>
3985+
<li>Each element in <code>Params</code> consists of up to 3 elements:<ul>
3986+
<li>content - the data for the element, if sending a file this is the file name (see the section below) </li>
3987+
<li>type - the MIME content-type type for the element</li>
3988+
<li>filename - if content is to be saved as a file, this is the filename for the content</li>
3989+
</ul>
3990+
</li>
39863991
<li>To send a file, prefix the file name with either:<ul>
39873992
<li><code>@</code> to upload the file's content and its name</li>
39883993
<li><code>&lt;</code> to upload just the file's content</li>
@@ -3995,19 +4000,64 @@ <h3 id="content-types-special-treatment-of-content-type-multipartform-data">Spec
39954000
<li>Extra newlines have been removed for compactness.</li>
39964001
<li>The file <code>/tmp/foo.txt</code> contains <code>Hello World</code>.</li>
39974002
<li>We create 4 parts to be sent with the request:<ul>
3998-
<li>a simple string</li>
4003+
<li>a JSON array (with content type 'application/json')</li>
39994004
<li>a named file - both the content and file name will be sent</li>
4005+
<li>some in-workspace content to be saved as a file named 'data.txt'</li>
4006+
<li>a simple string</li>
40004007
<li>an unnamed file - only the content will be sent</li>
4001-
<li>a JSON array (with content type 'application/json')</li>
40024008
</ul>
40034009
</li>
40044010
</ul>
4011+
<pre><code> h←HttpCommand.New 'post' 'someurl.com'
4012+
p←⎕NS '' ⍝ create a namespace
4013+
p.json←'[1,2,3]' 'application/json' ⍝ value and content type
4014+
p.namedfile←'@/tmp/foo.txt' ⍝ @ = include the file name
4015+
p.saveasfile←'this is the content' 'text/plain' 'data.txt' ⍝ save content as a file
4016+
p.string←'/tmp/foo.txt' ⍝ just a value
4017+
p.unnamedfile←'&lt;/tmp/foo.txt' ⍝ &lt; = do not include the file name
4018+
h.Params←p ⍝ assign the request Params
4019+
h.ContentType←'multipart/form-data' ⍝
4020+
h.Show
4021+
POST / HTTP/1.1
4022+
Host: someurl.com
4023+
User-Agent: Dyalog-HttpCommand/5.9.1
4024+
Accept: */*
4025+
Accept-Encoding: gzip, deflate
4026+
Content-Type: multipart/form-data; boundary=YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
4027+
Content-Length: 806
4028+
4029+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
4030+
Content-Disposition: form-data; name=&quot;json&quot;
4031+
Content-Type: application/json
4032+
[1,2,3]
4033+
4034+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
4035+
Content-Disposition: form-data; name=&quot;namedfile&quot;; filename=&quot;foo.txt&quot;
4036+
Content-Type: text/plain
4037+
this is a test
4038+
4039+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
4040+
Content-Disposition: form-data; name=&quot;saveasfile&quot;; filename=&quot;data.txt&quot;
4041+
Content-Type: text/plain
4042+
this is the content
4043+
4044+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
4045+
Content-Disposition: form-data; name=&quot;string&quot;
4046+
/tmp/foo.txt
4047+
4048+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q
4049+
Content-Disposition: form-data; name=&quot;unnamedfile&quot;
4050+
Content-Type: text/plain
4051+
this is a test
4052+
--YqXdULkJhPcuCBBikV8ffM8zS7uAdFoME4jNpDDs7SxVw9mM4q--
4053+
</code></pre>
40054054
<pre><code> h←HttpCommand.New 'post' 'someurl.com'
40064055
p←⎕NS '' ⍝ create a namespace
40074056
p.string←'/tmp/foo.txt' ⍝ just a value
40084057
p.namedfile←'@/tmp/foo.txt' ⍝ @ = include the file name
40094058
p.unnamedfile←'&lt;/tmp/foo.txt' ⍝ &lt; = do not include the file name
40104059
p.json←'[1,2,3]' 'application/json' ⍝ value and content type
4060+
p.saveasfile←'this is the content' 'text/plain' 'data.txt'
40114061
h.Params←p ⍝ assign the request Params
40124062
h.ContentType←'multipart/form-data' ⍝
40134063
h.Show

5.9/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

5.9/sitemap.xml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,122 +2,122 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>None</loc>
5-
<lastmod>2025-02-28</lastmod>
5+
<lastmod>2025-03-08</lastmod>
66
<changefreq>daily</changefreq>
77
</url>
88
<url>
99
<loc>None</loc>
10-
<lastmod>2025-02-28</lastmod>
10+
<lastmod>2025-03-08</lastmod>
1111
<changefreq>daily</changefreq>
1212
</url>
1313
<url>
1414
<loc>None</loc>
15-
<lastmod>2025-02-28</lastmod>
15+
<lastmod>2025-03-08</lastmod>
1616
<changefreq>daily</changefreq>
1717
</url>
1818
<url>
1919
<loc>None</loc>
20-
<lastmod>2025-02-28</lastmod>
20+
<lastmod>2025-03-08</lastmod>
2121
<changefreq>daily</changefreq>
2222
</url>
2323
<url>
2424
<loc>None</loc>
25-
<lastmod>2025-02-28</lastmod>
25+
<lastmod>2025-03-08</lastmod>
2626
<changefreq>daily</changefreq>
2727
</url>
2828
<url>
2929
<loc>None</loc>
30-
<lastmod>2025-02-28</lastmod>
30+
<lastmod>2025-03-08</lastmod>
3131
<changefreq>daily</changefreq>
3232
</url>
3333
<url>
3434
<loc>None</loc>
35-
<lastmod>2025-02-28</lastmod>
35+
<lastmod>2025-03-08</lastmod>
3636
<changefreq>daily</changefreq>
3737
</url>
3838
<url>
3939
<loc>None</loc>
40-
<lastmod>2025-02-28</lastmod>
40+
<lastmod>2025-03-08</lastmod>
4141
<changefreq>daily</changefreq>
4242
</url>
4343
<url>
4444
<loc>None</loc>
45-
<lastmod>2025-02-28</lastmod>
45+
<lastmod>2025-03-08</lastmod>
4646
<changefreq>daily</changefreq>
4747
</url>
4848
<url>
4949
<loc>None</loc>
50-
<lastmod>2025-02-28</lastmod>
50+
<lastmod>2025-03-08</lastmod>
5151
<changefreq>daily</changefreq>
5252
</url>
5353
<url>
5454
<loc>None</loc>
55-
<lastmod>2025-02-28</lastmod>
55+
<lastmod>2025-03-08</lastmod>
5656
<changefreq>daily</changefreq>
5757
</url>
5858
<url>
5959
<loc>None</loc>
60-
<lastmod>2025-02-28</lastmod>
60+
<lastmod>2025-03-08</lastmod>
6161
<changefreq>daily</changefreq>
6262
</url>
6363
<url>
6464
<loc>None</loc>
65-
<lastmod>2025-02-28</lastmod>
65+
<lastmod>2025-03-08</lastmod>
6666
<changefreq>daily</changefreq>
6767
</url>
6868
<url>
6969
<loc>None</loc>
70-
<lastmod>2025-02-28</lastmod>
70+
<lastmod>2025-03-08</lastmod>
7171
<changefreq>daily</changefreq>
7272
</url>
7373
<url>
7474
<loc>None</loc>
75-
<lastmod>2025-02-28</lastmod>
75+
<lastmod>2025-03-08</lastmod>
7676
<changefreq>daily</changefreq>
7777
</url>
7878
<url>
7979
<loc>None</loc>
80-
<lastmod>2025-02-28</lastmod>
80+
<lastmod>2025-03-08</lastmod>
8181
<changefreq>daily</changefreq>
8282
</url>
8383
<url>
8484
<loc>None</loc>
85-
<lastmod>2025-02-28</lastmod>
85+
<lastmod>2025-03-08</lastmod>
8686
<changefreq>daily</changefreq>
8787
</url>
8888
<url>
8989
<loc>None</loc>
90-
<lastmod>2025-02-28</lastmod>
90+
<lastmod>2025-03-08</lastmod>
9191
<changefreq>daily</changefreq>
9292
</url>
9393
<url>
9494
<loc>None</loc>
95-
<lastmod>2025-02-28</lastmod>
95+
<lastmod>2025-03-08</lastmod>
9696
<changefreq>daily</changefreq>
9797
</url>
9898
<url>
9999
<loc>None</loc>
100-
<lastmod>2025-02-28</lastmod>
100+
<lastmod>2025-03-08</lastmod>
101101
<changefreq>daily</changefreq>
102102
</url>
103103
<url>
104104
<loc>None</loc>
105-
<lastmod>2025-02-28</lastmod>
105+
<lastmod>2025-03-08</lastmod>
106106
<changefreq>daily</changefreq>
107107
</url>
108108
<url>
109109
<loc>None</loc>
110-
<lastmod>2025-02-28</lastmod>
110+
<lastmod>2025-03-08</lastmod>
111111
<changefreq>daily</changefreq>
112112
</url>
113113
<url>
114114
<loc>None</loc>
115-
<lastmod>2025-02-28</lastmod>
115+
<lastmod>2025-03-08</lastmod>
116116
<changefreq>daily</changefreq>
117117
</url>
118118
<url>
119119
<loc>None</loc>
120-
<lastmod>2025-02-28</lastmod>
120+
<lastmod>2025-03-08</lastmod>
121121
<changefreq>daily</changefreq>
122122
</url>
123123
</urlset>

5.9/sitemap.xml.gz

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)