Skip to content

Conversation

@bluehaoran
Copy link

Change:
$request = new Request(...)
to
$request = new static(...)

This allows Request to be extended. Why might you want to do that? Personally, I needed to add HMAC signing, so I wanted to be able to do this:
$response = HttpfulRequest::get($url) ->sign($key, $secret) ->send();

@bluehaoran
Copy link
Author

Closed in favour of #231, which targets Dev instead of Master.

@bluehaoran bluehaoran closed this Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant