{"id":18270261,"url":"https://github.com/pyke369/PKMultipartInputStream","last_synced_at":"2025-04-04T23:31:52.932Z","repository":{"id":1130138,"uuid":"1005695","full_name":"pyke369/PKMultipartInputStream","owner":"pyke369","description":"an NSInputStream subclass suitable for building multipart/form-data http requests bodies in MacOSX/iOS applications.","archived":false,"fork":false,"pushed_at":"2018-05-07T08:28:10.000Z","size":2288,"stargazers_count":73,"open_issues_count":2,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-23T22:47:56.810Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/pyke369/PKMultipartInputStream","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyke369.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-19T12:27:55.000Z","updated_at":"2024-08-22T20:49:07.000Z","dependencies_parsed_at":"2022-08-16T12:10:31.560Z","dependency_job_id":null,"html_url":"https://github.com/pyke369/PKMultipartInputStream","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyke369%2FPKMultipartInputStream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyke369%2FPKMultipartInputStream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyke369%2FPKMultipartInputStream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyke369%2FPKMultipartInputStream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyke369","download_url":"https://codeload.github.com/pyke369/PKMultipartInputStream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266476,"owners_count":20910831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:38:27.881Z","updated_at":"2025-04-04T23:31:50.959Z","avatar_url":"https://github.com/pyke369.png","language":"Objective-C","readme":"######################\nPKMultipartInputStream\n######################\n\nThis NSInputStream subclass is suitable for building multipart/form-data HTTP requests bodies in MacOSX/iOS applications.\n\n=====\nUsage\n=====\n\nA very simple example is presented below::\n\n    PKMultipartInputStream *body = [[PKMultipartInputStream alloc] init];\n    [body addPartWithName:@\"string\" string:@\"value\"];\n    [body addPartWithName:@\"data\" data:[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@\"image\" ofType:@\"png\"]]];\n    [body addPartWithName:@\"file\" path:[[NSBundle mainBundle] pathForResource:@\"video\" ofType:@\"mp4\"]];\n\n    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@\"http://site.com/upload.php\"]];\n    [request setValue:[NSString stringWithFormat:@\"multipart/form-data; boundary=%@\", [body boundary]] forHTTPHeaderField:@\"Content-Type\"];\n    [request setValue:[NSString stringWithFormat:@\"%d\", [body length]] forHTTPHeaderField:@\"Content-Length\"];\n    [request setHTTPBodyStream:body];\n    [request setHTTPMethod:@\"POST\"];\n    [[NSURLConnection alloc] initWithRequest:request delegate:self];\n\nAn example iOS application is provided along with the class code, please refer to it.\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyke369%2FPKMultipartInputStream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyke369%2FPKMultipartInputStream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyke369%2FPKMultipartInputStream/lists"}