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

fix(domain): add default headers in Response #37

Merged
merged 6 commits into from Mar 16, 2021

Conversation

amitksingh1490
Copy link
Collaborator

@amitksingh1490 amitksingh1490 commented Mar 16, 2021

Fixes #38

@amitksingh1490 amitksingh1490 marked this pull request as ready for review March 16, 2021 06:43
@@ -34,6 +36,8 @@ object Response {
val jContentBytBuf = res.content match {
case HttpContent.Complete(data) =>
jHttpHeaders.set(JHttpHeaderNames.CONTENT_LENGTH, data.length())
jHttpHeaders.set(JHttpHeaderNames.SERVER, "zio-http")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zio-http can be moved up so that the string is allocated only once.

@github-actions github-actions bot merged commit 72bccd9 into master Mar 16, 2021
@amitksingh1490 amitksingh1490 deleted the fix/add-server-timestamp-and-name branch March 16, 2021 17:09
@amitksingh1490 amitksingh1490 added the bug Something isn't working label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embed standard Http headers directly into FullHttpResponse
3 participants