Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Multipart is not set when a ratelimiter is not used. #2

Open
nickelc opened this issue Jul 13, 2019 · 1 comment · May be fixed by #4
Open

Multipart is not set when a ratelimiter is not used. #2

nickelc opened this issue Jul 13, 2019 · 1 comment · May be fixed by #4

Comments

@nickelc
Copy link

nickelc commented Jul 13, 2019

RestClient::request<T>()

let req = self.http.request(endpt.method.clone(), &req_url)
.query(&endpt.query)
.json(&endpt.json);

RestClient::request_empty()
let req = self.http.request(endpt.method.clone(), &req_url)
.query(&endpt.query)
.json(&endpt.json);

@nomsi
Copy link
Member

nomsi commented Jul 14, 2019

Until the async/.await()? release QoL changes like this are not really necessary.

pub fn multipart(mut self, payload: Form) -> Endpoint {
self.multipart = Some(payload);
self
}

This function is here for your use when making large multipart requests in the mean time: I will keep this issue open, you are more than welcome to submit a PR that we can take a look at.

@nickelc nickelc linked a pull request Jul 15, 2019 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants