-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the ability to switch to the chunked version of a command (meth…
…od) when possible
- Loading branch information
1 parent
6396a81
commit 71c7073
Showing
7 changed files
with
107 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import MethodCallArgs from './MethodCallArgs'; | ||
/// <reference types="node" /> | ||
import { MethodCallArgs } from './MethodCallArgs'; | ||
import { HTTPError } from '../Errors'; | ||
export { MethodCallArgs } from './MethodCallArgs'; | ||
export { HTTPCodes } from './HTTPCodes'; | ||
export declare type ChunkOnDataCallback = (chunk: Buffer, isFirst: boolean, isLast: boolean) => void; | ||
export declare type StartChunkedCallback = (error: HTTPError, onData: ChunkOnDataCallback) => void; | ||
export interface WebDAVRequest { | ||
(arg: MethodCallArgs, callback: () => void): void; | ||
chunked?: boolean; | ||
startChunked?: (arg: MethodCallArgs, callback: StartChunkedCallback) => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
import { IResource, ReturnCallback } from '../resource/IResource' | ||
import { MethodCallArgs } from './MethodCallArgs' | ||
import { WebDAVServer } from '../server/WebDAVServer' | ||
import { HTTPError } from '../Errors' | ||
import { FSPath } from '../manager/FSManager' | ||
import HTTPCodes from './HTTPCodes' | ||
import MethodCallArgs from './MethodCallArgs' | ||
import * as http from 'http' | ||
import * as url from 'url' | ||
|
||
export { MethodCallArgs } from './MethodCallArgs' | ||
export { HTTPCodes } from './HTTPCodes' | ||
|
||
export type ChunkOnDataCallback = (chunk : Buffer, isFirst : boolean, isLast : boolean) => void | ||
export type StartChunkedCallback = (error : HTTPError, onData : ChunkOnDataCallback) => void | ||
|
||
export interface WebDAVRequest | ||
{ | ||
(arg : MethodCallArgs, callback : () => void) : void | ||
|
||
chunked ?: boolean | ||
startChunked ?: (arg : MethodCallArgs, callback : StartChunkedCallback) => void | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters