Skip to content

Commit

Permalink
Get string representation of javadsl Content and Media Type
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Nov 15, 2024
1 parent 4fb8554 commit cd01275
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,9 @@ trait ContentType {
* Returns the charset if this ContentType is non-binary.
*/
def getCharsetOption: Optional[HttpCharset]

/**
* Returns the string representation of this ContentType
*/
def value: String
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,9 @@ trait MediaType {
* Creates a media-range from this media-type with a given qValue.
*/
def toRange(qValue: Float): MediaRange

/**
* Returns the string representation of this ContentType
*/
def value: String
}

0 comments on commit cd01275

Please sign in to comment.