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

[kohttp] Introduce Request dsl builder #147

Open
doyaaaaaken opened this issue Aug 5, 2019 · 1 comment
Open

[kohttp] Introduce Request dsl builder #147

doyaaaaaken opened this issue Aug 5, 2019 · 1 comment

Comments

@doyaaaaaken
Copy link
Contributor

Now we use Request.Builder() to create okhttp3.Request instance.

It's better to introduce Request dsl builder and write code simpler like this.

request {
            url = "https://postman-echo.com/post"
            post = requestBody {
                contentType = "application/x-www-form-urlencoded"
                body = ""
            }
}

Discussed at here.
#141 (comment)

@rybalkinsd
Copy link
Owner

Hi @doyaaaaaken thanks for posting this issue.

depends on #128 #130 130

@rybalkinsd rybalkinsd changed the title Introduce Request dsl builder [kohttp] Introduce Request dsl builder Aug 16, 2019
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

2 participants