akka / akka/akka-http

expose internal HttpRequest rendering API to users

Open
#144 11 comments 0 reactions 0 assignees View on GitHub
1 - triaged nice-to-have (low-prio)
Dominant language
Scala
Stars
1.4k
Forks
584
Avg merge
14h 33m
Merged PRs (30d)
24

Description

**Issue by [aappddeevv](https://github.com/aappddeevv)**
_Tuesday Dec 01, 2015 at 15:32 GMT_
_Originally opened as https://github.com/akka/akka/issues/19062_

---

There are needs to render HTTPRequest objects to text independent of sending them through a connection. The HttpRequest rendering API could be exposed. The key class to expose is RequestRendererFactory. This may require exposing the RequestRenderingContext.

Here's the link to the google-group post describing this: [google-group](https://groups.google.com/forum/#!msg/akka-user/X374C-s8B-I/e-r6E37PAwAJ).

Another approach is to allow an EntityBody to be composed of HttpRequests and have the rendering happen e.g. expose the rendererer as a Marshaller somehow since the rendering can be represented as a flow inside a Marshaller.

Contributor guide

Open the contributing guide

Research direction

Start by reading the internal RequestRendererFactory and RequestRenderingContext APIs mentioned in the issue, then review the linked Google Group discussion and the 11-comment thread for a decided direction. Done means users can render HttpRequest objects independently of a connection through a clearly exposed API, or through the selected EntityBody/Marshaller approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.