:+1: RTFM or wait for a BTW
On 22 Mar 2014 12:39, "Antonio Bertucci" <notifications@github.com> wrote:

> In api-explorer/src/main/groovy/com/gertherb/api/shared/ApiScript.groovy:
>
> > +
> > +abstract class ApiScript {
> > +
> > +    void execute() {
> > +        HTTPBuilder http = new HTTPBuilder('https://api.github.com')
> > +        def method = method()
> > +        def contentType = contentType()
> > +        http.request(method, contentType) {
> > +            println 'R E Q U E S T:\n-------------------------------'
> > +
> > +            println "${description()}\n"
> > +
> > +            uri.path = path()
> > +            println "URL:\n\t$method $uri"
> > +
> > +            headers['Accept'] = 'application/vnd.github.v3+json'
>
> BTW I would say it should return String, even if multiple types accepted.
> Example directly from W3C:
>
> Accept: text/plain; q=0.5, text/html,
>                text/x-dvi; q=0.8, text/x-c
>
> Http headers are basically a map, hence only <String, String> pairs are
> valid entries
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/novoda/gertherb/pull/2/files#r10862084>
> .
>