OpenTween.HttpConnectionOAuth.GetContent C# (CSharp) Method

GetContent() public method

バイナリアップロード
public GetContent ( string method, Uri requestUri, string>.Dictionary param, FileInfo>.List binary, string &content, string>.Dictionary headerInfo, CallbackDelegate callback ) : HttpStatusCode
method string
requestUri System.Uri
param string>.Dictionary
binary FileInfo>.List
content string
headerInfo string>.Dictionary
callback CallbackDelegate
return HttpStatusCode
        public HttpStatusCode GetContent( string method,
		                                  Uri requestUri,
		                                  Dictionary< string, string > param,
		                                  List< KeyValuePair< string, FileInfo > > binary, 
		                                  ref string content,
		                                  Dictionary< string, string > headerInfo,
		                                  CallbackDelegate callback )
        {
            // 認証済かチェック
            if (this.Credential == null)
                return HttpStatusCode.Unauthorized;

            HttpWebRequest webReq = this.CreateRequest( method, requestUri, param, binary, false );
            // OAuth認証ヘッダを付加
            this.AppendOAuthInfo(webReq, null);

            HttpStatusCode code;
            if ( content == null )
                code = this.GetResponse( webReq, headerInfo, false );
            else
                code = this.GetResponse( webReq, out content, headerInfo, false );

            if ( callback != null )
            {
                StackFrame frame = new StackFrame( 1 );
                callback( frame.GetMethod().Name, code, content );
            }
            return code;
        }

Same methods

HttpConnectionOAuth::GetContent ( string method, Uri requestUri, string>.Dictionary param, Stream &content, string userAgent ) : HttpStatusCode
HttpConnectionOAuth::GetContent ( string method, Uri requestUri, string>.Dictionary param, string &content, string>.Dictionary headerInfo, CallbackDelegate callback ) : HttpStatusCode