Adds request method whitelist and defaultCodec.