Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allow Any Type for JSON Response
Using `AnyObject` type prohibits the use of Swift collections (Array, Dictionary). Instead of casting them to Objective C equivalent (NSArray, NSDictionary), probably best to support the `Any` type.
  • Loading branch information
Mazyod authored Apr 14, 2019
commit dc3cb02dccecabcba1b678afedfcc879bc08d094
2 changes: 1 addition & 1 deletion Sources/HttpResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public protocol HttpResponseBodyWriter {

public enum HttpResponseBody {

case json(AnyObject)
case json(Any)
case html(String)
case text(String)
case data(Data)
Expand Down