Skip to content

Commit

Permalink
public path
Browse files Browse the repository at this point in the history
  • Loading branch information
snakajima committed Jan 4, 2021
1 parent 0c9d636 commit c10df31
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bonjour-http-server.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'bonjour-http-server'
s.version = '0.4.4'
s.version = '0.4.5'
s.summary = 'HTTP over Bonjour in Swift.'

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion bonjour-http.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'bonjour-http'
s.version = '0.4.4'
s.version = '0.4.5'
s.summary = 'HTTP over Bonjour in Swift.'

s.description = <<-DESC
Expand Down
6 changes: 3 additions & 3 deletions core/BonjourRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import Foundation
import CocoaAsyncSocket

public struct BonjourRequest {
let method: String
let path: String
let proto: String
public let method: String
public let path: String
public let proto: String
public var headers: [String:String]
public var body: Data?
var headerData: Data {
Expand Down
2 changes: 1 addition & 1 deletion core/BonjourResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

public struct BonjourResponse {
let proto: String
public let proto: String
public var statusText = "200 OK"
public var status:Int { Int(statusText.components(separatedBy: " ").first!) ?? 0 }
public var isSuccess:Bool { status >= 200 && status < 300 }
Expand Down

0 comments on commit c10df31

Please sign in to comment.