Mock a REST-request with a custom content-type with restito

Is it possible to create a mock with restito that has a custom Content-Type? I mean something other than application/xml and application/json. I can't figure out how to do that?

Answers


E.g

    whenHttp(server).
    match(Condition.get("/" + SOME_URI), Condition.withHeader("Accept", "application/xml") ).
    then(Action.ok(), Action.contentType("application/xml"), stringContent(xml)); 

Need Your Help

html5 videojs playlist setup

javascript html5-video video.js

I want to implement videojs player on a sharepoint site. I have been able to setup the video player with one static video source for the player. Now I want to have a list of video urls on the side ...

What is 'LINKED RESOURCES' for on the new portal of windows azure?

azure

Without linking the database, the website is able to connect to the database.