[ 
https://issues.apache.org/jira/browse/GROOVY-11879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King updated GROOVY-11879:
-------------------------------
    Component/s: http-builder

> A very simple DSL over the JDK's HTTP client
> --------------------------------------------
>
>                 Key: GROOVY-11879
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11879
>             Project: Groovy
>          Issue Type: New Feature
>          Components: http-builder
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 6.0.0-alpha-1
>
>
> In the past there have been very handy libraries like HttpBuilder and 
> HttpBuilderNG. They are no longer supported. Instead folks use the native JDK 
> client in JDK11+, libraries like okhttp, or our own Apache Geb. For simple 
> scripting scenarios, none of the options are as clean as what the old http 
> builder libraries provided.
> We rejected a previous proposal to have a built-in client: GROOVY-8209. At 
> the time it was going to add additional dependencies and the JDK builtin 
> client wasn't out. Times have moved on and there are times when doing simple 
> scripting when a tiny bit of syntactic sugar over the JDKs client would 
> provide useful without adding too much maintenance to our project.
> It isn't meant to handle many tricky cases - we have Geb for that and we can 
> make use of the existing APIs of the JDK client for some less common things 
> not covered by the little DSL.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to