Skip to content

Commit

Permalink
dispatch: update to new dispatch API
Browse files Browse the repository at this point in the history
  • Loading branch information
seliopou committed Nov 19, 2015
1 parent 9663506 commit bea5f6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/webmachine.ml
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ module type S = sig
(Code.status_code * Header.t * 'body * string list) IO.t

val dispatch :
(unit -> 'body resource) Dispatch.route list ->
((Dispatch.tag * string) list * Dispatch.typ * (unit -> 'body resource)) list ->
body:'body -> request:Request.t ->
(Code.status_code * Header.t * 'body * string list) option IO.t

val dispatch' :
(unit -> 'body resource) Dispatch.DSL.route list ->
(string * (unit -> 'body resource)) list ->
body:'body -> request:Request.t ->
(Code.status_code * Header.t * 'body * string list) option IO.t
end
Expand Down
4 changes: 2 additions & 2 deletions lib/webmachine.mli
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ module type S = sig
is useful for debugging. *)

val dispatch :
(unit -> 'body resource) Dispatch.route list ->
((Dispatch.tag * string) list * Dispatch.typ * (unit -> 'body resource)) list ->
body:'body -> request:Request.t ->
(Code.status_code * Header.t * 'body * string list) option IO.t
(** [dispatch routes] returns a request handler that will iterate through
Expand All @@ -179,7 +179,7 @@ module type S = sig
*)

val dispatch' :
(unit -> 'body resource) Dispatch.DSL.route list ->
(string * (unit -> 'body resource)) list ->
body:'body -> request:Request.t ->
(Code.status_code * Header.t * 'body * string list) option IO.t
(** [dispatch' routes ~body ~request] works in the same way as {dispatch'}
Expand Down

0 comments on commit bea5f6d

Please sign in to comment.