We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Having to prefix all the calls with a base URL is annoying:
$factory->createRequest('GET', 'http://example.com/foo');
It could be avoided if we implemented something like the following that would include the base url for us:
$factory = new BaseUrlMessageFactory('http://example.com', new GuzzleMessageFactory()); $request = $factory->createRequest('GET', '/foo');
The advantage is that we wouldn't need to deal with base url in the place where the factory is used.
What do you think?
The text was updated successfully, but these errors were encountered:
It looks like the AddHostPlugin does this job (it doesn't seem to have documentation right yet).
Sorry, something went wrong.
Moreless ;) cheers!
Be aware of the way how PSR-7 describes URI trailing slashes a bit illogical IMO. See php-http/plugins#42 (comment)
Actually, i'd love to be able to pass a string there :/
No branches or pull requests
Having to prefix all the calls with a base URL is annoying:
It could be avoided if we implemented something like the following that would include the base url for us:
The advantage is that we wouldn't need to deal with base url in the place where the factory is used.
What do you think?
The text was updated successfully, but these errors were encountered: