-
Notifications
You must be signed in to change notification settings - Fork 3
WpEndpointUrl
& ApiEndpointUrl
#113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7ba1a21
ca9e960
ac42c09
07d2835
e20302e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,7 +185,7 @@ impl AsyncWPNetworking { | |
|
||
let mut request = self | ||
.client | ||
.request(Self::request_method(wp_request.method), wp_request.url) | ||
.request(Self::request_method(wp_request.method), wp_request.url.0) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we implement ToString on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
.headers(request_headers); | ||
if let Some(body) = wp_request.body { | ||
request = request.body(body); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I agree with this – I'd be happy to have a failable initializer that won't let you make an invalid
WPNetworkRequest
, but I'd expect that some app developer will have a need to construct their own and use the underlying library plumbing to execute it?WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are discussing this a bit on Slack. If we decide to remove it, I'll do so as part of another PR.