Skip to content

Commit

Permalink
Add HTTP reason-phrase to Response
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk committed Mar 27, 2013
1 parent c41154b commit 581ec54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HTTP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ module HTTP

type Response
status::Integer
phrase::String
body::String
headers::Dict{String,Any}
cookies::Array{Cookie,1}
end
Response(status::Integer, body::String) = Response(status, body, Dict{String,Any}(), Cookie[])
Response(status::Integer, body::String) = Response(status, body, "", Dict{String,Any}(), Cookie[])
Response() = Response(200, "")

include("HTTP/Util.jl")
Expand Down

0 comments on commit 581ec54

Please sign in to comment.