-
Notifications
You must be signed in to change notification settings - Fork 1
/
HttpDocument.h
49 lines (37 loc) · 1.32 KB
/
HttpDocument.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// MyDocument.h
// HttpPoster
//
// Created by Emil Arfvidsson on 2/5/11.
// Copyright 2011 Emil Arfvidsson. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface HttpDocument : NSDocument
{
NSMutableData *fetchedData;
IBOutlet NSArrayController *historyController;
NSTextField *hostField;
NSTextField *pathField;
NSTextField *contentTypeField;
NSTextView *bodyField;
NSTextView *respField;
NSMutableArray *historyItems;
NSDictionary *selectedHistoryItem;
NSUInteger selectedHistoryItemIndex;
NSMutableArray *httpMethods;
NSUInteger selectedMethodIndex;
}
@property (nonatomic, assign) IBOutlet NSTextField *hostField;
@property (nonatomic, assign) IBOutlet NSTextField *pathField;
@property (nonatomic, assign) IBOutlet NSTextField *contentTypeField;
@property (nonatomic, assign) IBOutlet NSTextView *bodyField;
@property (nonatomic, assign) IBOutlet NSTextView *respField;
@property (nonatomic, retain) NSMutableArray *historyItems;
@property (nonatomic, assign) NSUInteger selectedHistoryItemIndex;
@property (nonatomic, assign) NSDictionary *selectedHistoryItem;
@property (nonatomic, retain) NSMutableArray *httpMethods;
@property (nonatomic, assign) NSUInteger selectedMethodIndex;
- (IBAction) sendButtonPushed:(id)sender;
- (NSDictionary *) saveForm;
- (void) httpCallWithForm:(NSDictionary *)form;
@end