Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9c0da4e566
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (14 sloc) 0.486 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-module (inets_response_bridge_tests).
-include ("test.hrl").
-export ([
    build_response_test/0
]).


build_response_test() ->
    B00 = simple_bridge:make_response(inets_response_bridge, undefined),
    B01 = B00:status_code(200),
    B02 = B01:header("header1", "value1"),
    B03 = B02:header("header2", "value2"),
    B04 = B03:cookie("cookie1", "value1"),
    B05 = B04:cookie("cookie2", "value2"),
    B06 = B05:data("This is the data."),
    _Response = B06:build_response().
Something went wrong with that request. Please try again.