NSURLResponse.odin 789 B

12345678910111213141516171819
  1. package objc_Foundation
  2. @(objc_class = "NSURLResponse")
  3. URLResponse :: struct { using _: Object }
  4. @(objc_type = URLResponse, objc_name = "alloc", objc_is_class_method = true)
  5. URLResponse_alloc :: proc "c" () -> ^URLResponse {
  6. return msgSend(^URLResponse, URLResponse, "alloc")
  7. }
  8. @(objc_type = URLResponse, objc_name = "init")
  9. URLResponse_init :: proc "c" (self: ^URLResponse) -> ^URLResponse {
  10. return msgSend(^URLResponse, URLResponse, "init")
  11. }
  12. @(objc_type = URLResponse, objc_name = "initWithURL")
  13. URLResponse_initWithURL :: proc "c" (self: ^URLResponse, url: ^URL, mime_type: ^String, length: int, encoding: ^String ) -> ^URLResponse {
  14. return msgSend(^URLResponse, self, "initWithURL:MIMEType:expectedContentLength:textEncodingName:", url, mime_type, Integer(length), encoding)
  15. }