Skip to content
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

Merge back to Aura? #2

Open
pmjones opened this issue Feb 17, 2012 · 6 comments
Open

Merge back to Aura? #2

pmjones opened this issue Feb 17, 2012 · 6 comments

Comments

@pmjones
Copy link

pmjones commented Feb 17, 2012

Hey there -- do you think things are mostly ready to merge into the Aura.Http package? I think it'd be cool to have it in for beta3.

@harikt
Copy link

harikt commented Feb 17, 2012

+1 for beta3 :-)

@galactic-void
Copy link
Owner

Cool, its mostly done It just needs some more docblocks and tests although the adapters are not tested at all.

Currently the Cookies and Headers classes in Aura\Http would be overwritten, but they should be backwards compatible with the exception of __construct.

Any suggestions / thoughts on what else needs done before merging?

@harikt
Copy link

harikt commented Feb 18, 2012

@galactic-void one thing I suggest is to make a repository of the Aura.Http , so we all can fork and play with it , merge branches and do corrections if any etc . As currently it resides in Nursery I feel this will become hard man .

@pmjones what do you feel about this ?

I don't have any other thoughts man .. Good work , looking forward :-)

@harikt
Copy link

harikt commented Feb 19, 2012

@galactic-void Thank you for the new fork and good work :-)

But why we are not able to create issues there ?

I have some thoughts by the way reading the docs

1 ) Can't we make a RequestFactory which do create the instance of objects like

$headers = new Http\Headers(new HeaderFactory);
$cookies = new Http\Cookies(new CookieFactory);

$response         = new Request\Response($headers, $cookies);
$response_builder = new Request\ResponseBuilder($response, new StackFactory);

$adapter = new Request\Adapter\Curl($response_builder);
$request = new Request($adapter, $headers, $cookies);

So the work of remembering all stuffs will decreases , and by default let the adapter be curl . And if they need let them pass it as an array ?

2 ) I guess you don't need to have the line use Aura\Http as Http; , for we already are including all others .

Good to move require src.php to top .

Thank you once again .

More issues / suggestions will be updated once I start playing with it :-) , if you can make the issues active I can post it there .

@galactic-void
Copy link
Owner

I like the idea of a RequestFactory I'm go to do that tonight.

I've turned issues on the forked repository.

@harikt
Copy link

harikt commented Feb 20, 2012

@galactic-void yey :-) . Thank you .

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

No branches or pull requests

3 participants