typescript-dotnet-amd
Version:
A JavaScript-Friendly .NET Based TypeScript Library.
35 lines (29 loc) • 922 B
TypeScript
/*!
* @author electricessence / https://github.com/electricessence/
* Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md
* Based on: https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
*/
import {HttpMethodValue} from "./HttpMethodValue";
import {IUri} from "../../Uri/IUri";
interface IHttpRequestParamsBase
{
/**
* See HttpMethod.ts and HttpMethodValue.d.ts. HttpMethodValue is a string literal type.
*/
method?:HttpMethodValue.Any;
uri:string|IUri;
data?:any;
}
export interface IHttpRequestParams extends IHttpRequestParamsBase
{
method:HttpMethodValue.Any;
}
export interface IHttpMethodParams<TMethod extends HttpMethodValue.Any> extends IHttpRequestParamsBase
{
method?:TMethod;
}
export interface IHttpPostParams<TData> extends IHttpMethodParams<HttpMethodValue.Post>
{
data:TData;
}
export default IHttpRequestParams;