vlib: update doc comments (#19231)

This commit is contained in:
Turiiya 2023-08-30 07:50:00 +02:00 committed by GitHub
parent 78c34326f1
commit f755118e7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 22 additions and 20 deletions

View file

@ -105,7 +105,7 @@ pub fn read_cookies(h map[string][]string, filter string) []&Cookie {
return cookies
}
// Returns the serialization of the cookie for use in a Cookie header
// str returns the serialization of the cookie for use in a Cookie header
// (if only Name and Value are set) or a Set-Cookie response
// header (if other fields are set).
//

View file

@ -444,7 +444,7 @@ pub fn parse_multipart_form(body string, boundary string) (map[string]string, ma
return form, files
}
// parse_disposition parses the Content-Disposition header of a multipart form
// parse_disposition parses the Content-Disposition header of a multipart form.
// Returns a map of the key="value" pairs
// Example: assert parse_disposition('Content-Disposition: form-data; name="a"; filename="b"') == {'name': 'a', 'filename': 'b'}
fn parse_disposition(line string) map[string]string {