dynamic url host issue #39

Open
0xb0bb opened this Issue Feb 5, 2013 · 2 comments

Projects

None yet

2 participants

@0xb0bb
0xb0bb commented Feb 5, 2013

when trying to build a dynamic url to take advantage of url encoding a call to host("domain.com") returns a RequestBuilder, however when provided as an arg to Http I get a promise(-incomplete-)

If I prepend the domain with http:// ie. host("http://domain.com") I get a Promise(!http://http://pubsub.pubnub.com/!) which is obviously not a valid url. I am stuck here

@softprops
Contributor

Did you try the url method?

Http(url("http://foo.com") > handler)
@0xb0bb
0xb0bb commented Feb 5, 2013

Hey Doug,

I did but I am sending a JSON message to pubnub in which I need the {}
braces. URLEncoder seemed to work and I reverted back to the url method.

Thanks,
Bobby

On Tue, Feb 5, 2013 at 7:28 AM, doug tangren notifications@github.comwrote:

Did you try the url method?

Http(url("http://foo.com") > handler)


Reply to this email directly or view it on GitHubhttps://github.com/dispatch/reboot/issues/39#issuecomment-13129030.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment