{"action":"created","comment":{"url":"https://api.github.com/repos/seanmonstar/reqwest/pulls/comments/213518679","pull_request_review_id":150371864,"id":213518679,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzUxODY3OQ==","diff_hunk":"@@ -197,6 +203,21 @@ impl Part {\n         self.file_name = Some(filename.into());\n         self\n     }\n+\n+    /// Returns a reference to the map of additional header fields\n+    pub fn header_fields(&self) -> &HeaderMap {","path":"src/multipart_.rs","position":33,"original_position":33,"commit_id":"e5a31897969dac4edd016537501216a37c725ea0","original_commit_id":"e5a31897969dac4edd016537501216a37c725ea0","user":{"login":"seanmonstar","id":51479,"node_id":"MDQ6VXNlcjUxNDc5","avatar_url":"https://avatars1.githubusercontent.com/u/51479?v=4","gravatar_id":"","url":"https://api.github.com/users/seanmonstar","html_url":"https://github.com/seanmonstar","followers_url":"https://api.github.com/users/seanmonstar/followers","following_url":"https://api.github.com/users/seanmonstar/following{/other_user}","gists_url":"https://api.github.com/users/seanmonstar/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmonstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmonstar/subscriptions","organizations_url":"https://api.github.com/users/seanmonstar/orgs","repos_url":"https://api.github.com/users/seanmonstar/repos","events_url":"https://api.github.com/users/seanmonstar/events{/privacy}","received_events_url":"https://api.github.com/users/seanmonstar/received_events","type":"User","site_admin":false},"body":"To match with the other APIs, I'd call this method just `headers`.","created_at":"2018-08-29T01:12:52Z","updated_at":"2018-08-29T01:16:06Z","html_url":"https://github.com/seanmonstar/reqwest/pull/331#discussion_r213518679","pull_request_url":"https://api.github.com/repos/seanmonstar/reqwest/pulls/331","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/seanmonstar/reqwest/pulls/comments/213518679"},"html":{"href":"https://github.com/seanmonstar/reqwest/pull/331#discussion_r213518679"},"pull_request":{"href":"https://api.github.com/repos/seanmonstar/reqwest/pulls/331"}}},"pull_request":{"url":"https://api.github.com/repos/seanmonstar/reqwest/pulls/331","id":210362972,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMzYyOTcy","html_url":"https://github.com/seanmonstar/reqwest/pull/331","diff_url":"https://github.com/seanmonstar/reqwest/pull/331.diff","patch_url":"https://github.com/seanmonstar/reqwest/pull/331.patch","issue_url":"https://api.github.com/repos/seanmonstar/reqwest/issues/331","number":331,"state":"open","locked":false,"title":"Add API for Headers on Parts of Multipart Form Data","user":{"login":"jcaesar","id":1753388,"node_id":"MDQ6VXNlcjE3NTMzODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1753388?v=4","gravatar_id":"","url":"https://api.github.com/users/jcaesar","html_url":"https://github.com/jcaesar","followers_url":"https://api.github.com/users/jcaesar/followers","following_url":"https://api.github.com/users/jcaesar/following{/other_user}","gists_url":"https://api.github.com/users/jcaesar/gists{/gist_id}","starred_url":"https://api.github.com/users/jcaesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcaesar/subscriptions","organizations_url":"https://api.github.com/users/jcaesar/orgs","repos_url":"https://api.github.com/users/jcaesar/repos","events_url":"https://api.github.com/users/jcaesar/events{/privacy}","received_events_url":"https://api.github.com/users/jcaesar/received_events","type":"User","site_admin":false},"body":"When working on [rust-ipfs-api](https://github.com/gkbrk/rust-ipfs-api), I saw that it uses a somewhat uncommon format for some requests:\r\n```\r\nPOST /api/v0/add?chunker=size-262144&encoding=json&hash=sha2-256&nocopy=true&pin=false&progress=true&recursive=false&stream-channels=true HTTP/1.1\r\nHost: 127.0.0.1:5001\r\nUser-Agent: go-ipfs-cmds/http\r\nConnection: close\r\nTransfer-Encoding: chunked\r\nContent-Type: multipart/form-data; boundary=cfc4c1c4ad2e8ad270952524bc619a97033c8e6429a52d1358992325ed8b\r\nAccept-Encoding: gzip\r\n\r\n--cfc4c1c4ad2e8ad270952524bc619a97033c8e6429a52d1358992325ed8b\r\nAbspath: /home/ipfs/gentoo/releases/verify-digests.sh\r\nContent-Disposition: file; filename=\"verify-digests.sh\"\r\nContent-Type: application/octet-stream\r\n\r\n#!/bin/bash\r\n# Name: verify-digests.sh\r\n…\r\n```\r\nThe `Abspath` header on the form data part is critical: it tells the server where to find the file on hard disk if it needs to re-read it later. (Whether that is good design…)\r\n\r\nThis PR does add a patch that allows composing requests like the above, but considering my unfamiliarity with Rust and the discussion in https://github.com/seanmonstar/reqwest/issues/312 I doubt that you want to accept it like this. If possible, I'd like you to consider this a feature request, and a request to tell me how to implement the functionality properly.","created_at":"2018-08-23T08:04:55Z","updated_at":"2018-08-29T01:16:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f7117049530a764973e268d6412876988ceb650","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/seanmonstar/reqwest/pulls/331/commits","review_comments_url":"https://api.github.com/repos/seanmonstar/reqwest/pulls/331/comments","review_comment_url":"https://api.github.com/repos/seanmonstar/reqwest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seanmonstar/reqwest/issues/331/comments","statuses_url":"https://api.github.com/repos/seanmonstar/reqwest/statuses/e5a31897969dac4edd016537501216a37c725ea0","head":{"label":"jcaesar:master","ref":"master","sha":"e5a31897969dac4edd016537501216a37c725ea0","user":{"login":"jcaesar","id":1753388,"node_id":"MDQ6VXNlcjE3NTMzODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1753388?v=4","gravatar_id":"","url":"https://api.github.com/users/jcaesar","html_url":"https://github.com/jcaesar","followers_url":"https://api.github.com/users/jcaesar/followers","following_url":"https://api.github.com/users/jcaesar/following{/other_user}","gists_url":"https://api.github.com/users/jcaesar/gists{/gist_id}","starred_url":"https://api.github.com/users/jcaesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcaesar/subscriptions","organizations_url":"https://api.github.com/users/jcaesar/orgs","repos_url":"https://api.github.com/users/jcaesar/repos","events_url":"https://api.github.com/users/jcaesar/events{/privacy}","received_events_url":"https://api.github.com/users/jcaesar/received_events","type":"User","site_admin":false},"repo":{"id":145274793,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUyNzQ3OTM=","name":"reqwest","full_name":"jcaesar/reqwest","owner":{"login":"jcaesar","id":1753388,"node_id":"MDQ6VXNlcjE3NTMzODg=","avatar_url":"https://avatars3.githubusercontent.com/u/1753388?v=4","gravatar_id":"","url":"https://api.github.com/users/jcaesar","html_url":"https://github.com/jcaesar","followers_url":"https://api.github.com/users/jcaesar/followers","following_url":"https://api.github.com/users/jcaesar/following{/other_user}","gists_url":"https://api.github.com/users/jcaesar/gists{/gist_id}","starred_url":"https://api.github.com/users/jcaesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcaesar/subscriptions","organizations_url":"https://api.github.com/users/jcaesar/orgs","repos_url":"https://api.github.com/users/jcaesar/repos","events_url":"https://api.github.com/users/jcaesar/events{/privacy}","received_events_url":"https://api.github.com/users/jcaesar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jcaesar/reqwest","description":"An easy and powerful Rust HTTP Client","fork":true,"url":"https://api.github.com/repos/jcaesar/reqwest","forks_url":"https://api.github.com/repos/jcaesar/reqwest/forks","keys_url":"https://api.github.com/repos/jcaesar/reqwest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jcaesar/reqwest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jcaesar/reqwest/teams","hooks_url":"https://api.github.com/repos/jcaesar/reqwest/hooks","issue_events_url":"https://api.github.com/repos/jcaesar/reqwest/issues/events{/number}","events_url":"https://api.github.com/repos/jcaesar/reqwest/events","assignees_url":"https://api.github.com/repos/jcaesar/reqwest/assignees{/user}","branches_url":"https://api.github.com/repos/jcaesar/reqwest/branches{/branch}","tags_url":"https://api.github.com/repos/jcaesar/reqwest/tags","blobs_url":"https://api.github.com/repos/jcaesar/reqwest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jcaesar/reqwest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jcaesar/reqwest/git/refs{/sha}","trees_url":"https://api.github.com/repos/jcaesar/reqwest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jcaesar/reqwest/statuses/{sha}","languages_url":"https://api.github.com/repos/jcaesar/reqwest/languages","stargazers_url":"https://api.github.com/repos/jcaesar/reqwest/stargazers","contributors_url":"https://api.github.com/repos/jcaesar/reqwest/contributors","subscribers_url":"https://api.github.com/repos/jcaesar/reqwest/subscribers","subscription_url":"https://api.github.com/repos/jcaesar/reqwest/subscription","commits_url":"https://api.github.com/repos/jcaesar/reqwest/commits{/sha}","git_commits_url":"https://api.github.com/repos/jcaesar/reqwest/git/commits{/sha}","comments_url":"https://api.github.com/repos/jcaesar/reqwest/comments{/number}","issue_comment_url":"https://api.github.com/repos/jcaesar/reqwest/issues/comments{/number}","contents_url":"https://api.github.com/repos/jcaesar/reqwest/contents/{+path}","compare_url":"https://api.github.com/repos/jcaesar/reqwest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jcaesar/reqwest/merges","archive_url":"https://api.github.com/repos/jcaesar/reqwest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jcaesar/reqwest/downloads","issues_url":"https://api.github.com/repos/jcaesar/reqwest/issues{/number}","pulls_url":"https://api.github.com/repos/jcaesar/reqwest/pulls{/number}","milestones_url":"https://api.github.com/repos/jcaesar/reqwest/milestones{/number}","notifications_url":"https://api.github.com/repos/jcaesar/reqwest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jcaesar/reqwest/labels{/name}","releases_url":"https://api.github.com/repos/jcaesar/reqwest/releases{/id}","deployments_url":"https://api.github.com/repos/jcaesar/reqwest/deployments","created_at":"2018-08-19T05:06:31Z","updated_at":"2018-08-26T01:30:04Z","pushed_at":"2018-08-26T01:30:02Z","git_url":"git://github.com/jcaesar/reqwest.git","ssh_url":"git@github.com:jcaesar/reqwest.git","clone_url":"https://github.com/jcaesar/reqwest.git","svn_url":"https://github.com/jcaesar/reqwest","homepage":"https://docs.rs/reqwest","size":423,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"seanmonstar:master","ref":"master","sha":"13cfc4df851e574f86824277f8a3cdd1521dfa1d","user":{"login":"seanmonstar","id":51479,"node_id":"MDQ6VXNlcjUxNDc5","avatar_url":"https://avatars1.githubusercontent.com/u/51479?v=4","gravatar_id":"","url":"https://api.github.com/users/seanmonstar","html_url":"https://github.com/seanmonstar","followers_url":"https://api.github.com/users/seanmonstar/followers","following_url":"https://api.github.com/users/seanmonstar/following{/other_user}","gists_url":"https://api.github.com/users/seanmonstar/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmonstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmonstar/subscriptions","organizations_url":"https://api.github.com/users/seanmonstar/orgs","repos_url":"https://api.github.com/users/seanmonstar/repos","events_url":"https://api.github.com/users/seanmonstar/events{/privacy}","received_events_url":"https://api.github.com/users/seanmonstar/received_events","type":"User","site_admin":false},"repo":{"id":62350380,"node_id":"MDEwOlJlcG9zaXRvcnk2MjM1MDM4MA==","name":"reqwest","full_name":"seanmonstar/reqwest","owner":{"login":"seanmonstar","id":51479,"node_id":"MDQ6VXNlcjUxNDc5","avatar_url":"https://avatars1.githubusercontent.com/u/51479?v=4","gravatar_id":"","url":"https://api.github.com/users/seanmonstar","html_url":"https://github.com/seanmonstar","followers_url":"https://api.github.com/users/seanmonstar/followers","following_url":"https://api.github.com/users/seanmonstar/following{/other_user}","gists_url":"https://api.github.com/users/seanmonstar/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmonstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmonstar/subscriptions","organizations_url":"https://api.github.com/users/seanmonstar/orgs","repos_url":"https://api.github.com/users/seanmonstar/repos","events_url":"https://api.github.com/users/seanmonstar/events{/privacy}","received_events_url":"https://api.github.com/users/seanmonstar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seanmonstar/reqwest","description":"An easy and powerful Rust HTTP Client","fork":false,"url":"https://api.github.com/repos/seanmonstar/reqwest","forks_url":"https://api.github.com/repos/seanmonstar/reqwest/forks","keys_url":"https://api.github.com/repos/seanmonstar/reqwest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seanmonstar/reqwest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seanmonstar/reqwest/teams","hooks_url":"https://api.github.com/repos/seanmonstar/reqwest/hooks","issue_events_url":"https://api.github.com/repos/seanmonstar/reqwest/issues/events{/number}","events_url":"https://api.github.com/repos/seanmonstar/reqwest/events","assignees_url":"https://api.github.com/repos/seanmonstar/reqwest/assignees{/user}","branches_url":"https://api.github.com/repos/seanmonstar/reqwest/branches{/branch}","tags_url":"https://api.github.com/repos/seanmonstar/reqwest/tags","blobs_url":"https://api.github.com/repos/seanmonstar/reqwest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seanmonstar/reqwest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seanmonstar/reqwest/git/refs{/sha}","trees_url":"https://api.github.com/repos/seanmonstar/reqwest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seanmonstar/reqwest/statuses/{sha}","languages_url":"https://api.github.com/repos/seanmonstar/reqwest/languages","stargazers_url":"https://api.github.com/repos/seanmonstar/reqwest/stargazers","contributors_url":"https://api.github.com/repos/seanmonstar/reqwest/contributors","subscribers_url":"https://api.github.com/repos/seanmonstar/reqwest/subscribers","subscription_url":"https://api.github.com/repos/seanmonstar/reqwest/subscription","commits_url":"https://api.github.com/repos/seanmonstar/reqwest/commits{/sha}","git_commits_url":"https://api.github.com/repos/seanmonstar/reqwest/git/commits{/sha}","comments_url":"https://api.github.com/repos/seanmonstar/reqwest/comments{/number}","issue_comment_url":"https://api.github.com/repos/seanmonstar/reqwest/issues/comments{/number}","contents_url":"https://api.github.com/repos/seanmonstar/reqwest/contents/{+path}","compare_url":"https://api.github.com/repos/seanmonstar/reqwest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seanmonstar/reqwest/merges","archive_url":"https://api.github.com/repos/seanmonstar/reqwest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seanmonstar/reqwest/downloads","issues_url":"https://api.github.com/repos/seanmonstar/reqwest/issues{/number}","pulls_url":"https://api.github.com/repos/seanmonstar/reqwest/pulls{/number}","milestones_url":"https://api.github.com/repos/seanmonstar/reqwest/milestones{/number}","notifications_url":"https://api.github.com/repos/seanmonstar/reqwest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seanmonstar/reqwest/labels{/name}","releases_url":"https://api.github.com/repos/seanmonstar/reqwest/releases{/id}","deployments_url":"https://api.github.com/repos/seanmonstar/reqwest/deployments","created_at":"2016-07-01T00:23:08Z","updated_at":"2018-08-29T01:09:01Z","pushed_at":"2018-08-29T01:09:00Z","git_url":"git://github.com/seanmonstar/reqwest.git","ssh_url":"git@github.com:seanmonstar/reqwest.git","clone_url":"https://github.com/seanmonstar/reqwest.git","svn_url":"https://github.com/seanmonstar/reqwest","homepage":"https://docs.rs/reqwest","size":423,"stargazers_count":778,"watchers_count":778,"language":"Rust","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":145,"mirror_url":null,"archived":false,"open_issues_count":65,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":145,"open_issues":65,"watchers":778,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seanmonstar/reqwest/pulls/331"},"html":{"href":"https://github.com/seanmonstar/reqwest/pull/331"},"issue":{"href":"https://api.github.com/repos/seanmonstar/reqwest/issues/331"},"comments":{"href":"https://api.github.com/repos/seanmonstar/reqwest/issues/331/comments"},"review_comments":{"href":"https://api.github.com/repos/seanmonstar/reqwest/pulls/331/comments"},"review_comment":{"href":"https://api.github.com/repos/seanmonstar/reqwest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seanmonstar/reqwest/pulls/331/commits"},"statuses":{"href":"https://api.github.com/repos/seanmonstar/reqwest/statuses/e5a31897969dac4edd016537501216a37c725ea0"}},"author_association":"NONE"}}
{"actor":{"display_login":"seanmonstar"}}