puniverse / comsat

Fibers and actors for web development
docs.paralleluniverse.co/comsat
Other
598 stars 103 forks source link

SimpleHttpRequest & SimpleHttpResponse access #54

Closed roded closed 8 years ago

roded commented 8 years ago

Hi, I'm trying to test a WebActor by fabricating and sending it WebMessages directly. SimpleHttpRequest & SimpleHttpResponse are useful for this purpose but are of private access. Can they be made public?

Edit: Actually, SimpleHttpRequest is more relevant to the issue. I don't need to create SimpleHttpResponses.

circlespainter commented 8 years ago

You should already be able to create a custom SimpleHttpResponse by using HttpResponse.Builder. (should you need it). And actually it looks to me like an equivalent build method is missing in HttpRequest.Builder. Would it work for you?

roded commented 8 years ago

Yes, that's better. Thanks

circlespainter commented 8 years ago

A new snapshot should be available on SonaType.