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 125cc72
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,10 @@ trait ContentType {
* Returns the charset if this ContentType is non-binary.
*/
def getCharsetOption: Optional[HttpCharset]

/**
* Returns the string representation of this ContentType
* @since 1.2.0
*/
def value: String
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,10 @@ 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 MediaType
* @since 1.2.0
*/
def value: String
}

0 comments on commit 125cc72

Please sign in to comment.